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

Commit f78b5e2e authored by Issei Suzuki's avatar Issei Suzuki
Browse files

Removed unused variable from ThreadedRenderer

Bug: 136616503
Test: refactoring, check if existing tests pass
Change-Id: I627832b2e8f964dbabbf95788279e437c4347adf
parent 4cb04496
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -286,9 +286,6 @@ public final class ThreadedRenderer extends HardwareRenderer {
    // applied as translation when updating the root render node.
    private int mInsetTop, mInsetLeft;

    // Whether the surface has insets. Used to protect opacity.
    private boolean mHasInsets;

    // Light properties specified by the theme.
    private final float mLightY;
    private final float mLightZ;
@@ -474,7 +471,6 @@ public final class ThreadedRenderer extends HardwareRenderer {

        if (surfaceInsets != null && (surfaceInsets.left != 0 || surfaceInsets.right != 0
                || surfaceInsets.top != 0 || surfaceInsets.bottom != 0)) {
            mHasInsets = true;
            mInsetLeft = surfaceInsets.left;
            mInsetTop = surfaceInsets.top;
            mSurfaceWidth = width + mInsetLeft + surfaceInsets.right;
@@ -483,7 +479,6 @@ public final class ThreadedRenderer extends HardwareRenderer {
            // If the surface has insets, it can't be opaque.
            setOpaque(false);
        } else {
            mHasInsets = false;
            mInsetLeft = 0;
            mInsetTop = 0;
            mSurfaceWidth = width;