From 06a2d2bf2319eef2f81b6d8d3f980cc484999bc9 Mon Sep 17 00:00:00 2001 From: Yi Kong Date: Sun, 30 Apr 2017 23:51:33 -0700 Subject: Remove no-op std::max call This was calling std::max on an unsigned integer and 0, which is essentially no-op. Remove this code. Test: Build Bug: 37752547 Change-Id: I74ce45b95960621dff11f574fbe1af60ad147cf0 --- libs/hwui/JankTracker.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'libs/hwui/JankTracker.cpp') diff --git a/libs/hwui/JankTracker.cpp b/libs/hwui/JankTracker.cpp index 2132c2b171dc..9c253c42cd8f 100644 --- a/libs/hwui/JankTracker.cpp +++ b/libs/hwui/JankTracker.cpp @@ -265,7 +265,6 @@ void JankTracker::addFrame(const FrameInfo& frame) { / kSlowFrameBucketIntervalMs; framebucket = std::min(framebucket, static_cast(mData->slowFrameCounts.size() - 1)); - framebucket = std::max(framebucket, 0u); mData->slowFrameCounts[framebucket]++; } -- cgit v1.2.3-59-g8ed1b