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

Commit 67a8daf0 authored by Aurimas Liutikas's avatar Aurimas Liutikas
Browse files

Remove unused method and constant in View

Turns out when you have IJ set up a lot of things become
more easy to spot.

sLayoutParamsAlwaysChanged was added in ag/818432, but then
not removed in ag/825933 when the feature was pulled.

transformRect was added in ag/173465 but never actually used.

Test: make -j
Change-Id: I69996a3b5e7526941a0e14158e892267075c29f3
parent 4ed935a5
Loading
Loading
Loading
Loading
+0 −26
Original line number Diff line number Diff line
@@ -880,12 +880,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
     */
    private static boolean sAlwaysRemeasureExactly = false;
    /**
     * Relax constraints around whether setLayoutParams() must be called after
     * modifying the layout params.
     */
    private static boolean sLayoutParamsAlwaysChanged = false;
    /**
     * Allow setForeground/setBackground to be called (and ignored) on a textureview,
     * without throwing
@@ -5170,11 +5164,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
            // modes, so we always need to run an additional EXACTLY pass.
            sAlwaysRemeasureExactly = targetSdkVersion <= Build.VERSION_CODES.M;
            // Prior to N, layout params could change without requiring a
            // subsequent call to setLayoutParams() and they would usually
            // work. Partial layout breaks this assumption.
            sLayoutParamsAlwaysChanged = targetSdkVersion <= Build.VERSION_CODES.M;
            // Prior to N, TextureView would silently ignore calls to setBackground/setForeground.
            // On N+, we throw, but that breaks compatibility with apps that use these methods.
            sTextureViewIgnoresDrawableSetters = targetSdkVersion <= Build.VERSION_CODES.M;
@@ -17987,21 +17976,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
        }
    }
    /**
     * Utility method to transform a given Rect by the current matrix of this view.
     */
    void transformRect(final Rect rect) {
        if (!getMatrix().isIdentity()) {
            RectF boundingRect = mAttachInfo.mTmpTransformRect;
            boundingRect.set(rect);
            getMatrix().mapRect(boundingRect);
            rect.set((int) Math.floor(boundingRect.left),
                    (int) Math.floor(boundingRect.top),
                    (int) Math.ceil(boundingRect.right),
                    (int) Math.ceil(boundingRect.bottom));
        }
    }
    /**
     * Used to indicate that the parent of this view should clear its caches. This functionality
     * is used to force the parent to rebuild its display list (when hardware-accelerated),