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

Commit 8f414739 authored by Shai Barack's avatar Shai Barack
Browse files

Remove ViewRootImpl.profile()

It's been marked as "FIXME remove eventually" since 2009.
¯\_(ツ)_/¯

Flag: EXEMPT cleanup of prehistoric code
Test: lol this is from before anyone on Android knew what a test is
Change-Id: Ic7ac81d199411fa234d3b704a27a2edcb63d2d1c
parent a7416534
Loading
Loading
Loading
Loading
+0 −21
Original line number Diff line number Diff line
@@ -1382,17 +1382,6 @@ public final class ViewRootImpl implements ViewParent,
        }
    }
    // FIXME for perf testing only
    private boolean mProfile = false;
    /**
     * Call this to profile the next traversal call.
     * FIXME for perf testing only. Remove eventually
     */
    public void profile() {
        mProfile = true;
    }
    private boolean isInTouchMode() {
        if (mAttachInfo == null) {
            return mContext.getResources().getBoolean(R.bool.config_defaultInTouchMode);
@@ -3047,17 +3036,7 @@ public final class ViewRootImpl implements ViewParent,
        if (mTraversalScheduled) {
            mTraversalScheduled = false;
            mHandler.getLooper().getQueue().removeSyncBarrier(mTraversalBarrier);
            if (mProfile) {
                Debug.startMethodTracing("ViewAncestor");
            }
            performTraversals();
            if (mProfile) {
                Debug.stopMethodTracing();
                mProfile = false;
            }
        }
    }