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

Commit 9231eaf4 authored by Ben Murdoch's avatar Ben Murdoch
Browse files

Fixup App Compaction CL nits.

A couple of nits to cleanup from change I71fffc52a232cd5608742d9f36965a4de6494b56

 - remove unused method
 - remove unnecessary null check.

BUG: 128427978
Test: atest FrameworksMockingServicesTests:AppCompactorTest
Change-Id: I363c57fc78529207585f5d1e004770d967ce87b9
parent 9ad8aa3a
Loading
Loading
Loading
Loading
+9 −15
Original line number Diff line number Diff line
@@ -278,7 +278,6 @@ public final class AppCompactor {
                    + " full, " + mPersistentCompactionCount + " persistent, "
                    + mBfgsCompactionCount + " BFGS compactions.");

            if (mLastCompactionStats != null) {
            pw.println("  Tracking last compaction stats for " + mLastCompactionStats.size()
                    + " processes.");
            if (DEBUG_COMPACTION) {
@@ -292,7 +291,6 @@ public final class AppCompactor {
            }
        }
    }
    }

    @GuardedBy("mAm")
    void compactAppSome(ProcessRecord app) {
@@ -506,10 +504,6 @@ public final class AppCompactor {
        }
    }

    @VisibleForTesting static String procStateListToString(Integer... processStates) {
        return Arrays.toString(processStates);
    }

    private static final class LastCompactionStats {
        private final long[] mRssAfterCompaction;