Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 06a2d2bf authored by Yi Kong's avatar Yi Kong
Browse files

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
parent 169681db
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -265,7 +265,6 @@ void JankTracker::addFrame(const FrameInfo& frame) {
                / kSlowFrameBucketIntervalMs;
                / kSlowFrameBucketIntervalMs;
        framebucket = std::min(framebucket,
        framebucket = std::min(framebucket,
                static_cast<uint32_t>(mData->slowFrameCounts.size() - 1));
                static_cast<uint32_t>(mData->slowFrameCounts.size() - 1));
        framebucket = std::max(framebucket, 0u);
        mData->slowFrameCounts[framebucket]++;
        mData->slowFrameCounts[framebucket]++;
    }
    }