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

Commit b2074751 authored by David Stevens's avatar David Stevens
Browse files

Remove unused field in ProcessStateRecord

The modern OomAdjusterImpl no longer needs to track cycles in
ProcessStateRecord.

Test: build
Flag: EXEMPT refactor
Change-Id: I01c1e0f21fb8105d23d8a0bf6491f1aa25424916
parent f5bf5222
Loading
Loading
Loading
Loading
+0 −16
Original line number Original line Diff line number Diff line
@@ -267,12 +267,6 @@ final class ProcessStateRecord {
    @GuardedBy("mService")
    @GuardedBy("mService")
    private int mCompletedAdjSeq;
    private int mCompletedAdjSeq;


    /**
     * Whether this app has encountered a cycle in the most recent update.
     */
    @GuardedBy("mService")
    private boolean mContainsCycle;

    /**
    /**
     * When (uptime) the process last became unimportant.
     * When (uptime) the process last became unimportant.
     */
     */
@@ -856,16 +850,6 @@ final class ProcessStateRecord {
        return mCompletedAdjSeq;
        return mCompletedAdjSeq;
    }
    }


    @GuardedBy("mService")
    void setContainsCycle(boolean containsCycle) {
        mContainsCycle = containsCycle;
    }

    @GuardedBy("mService")
    boolean containsCycle() {
        return mContainsCycle;
    }

    @GuardedBy({"mService", "mProcLock"})
    @GuardedBy({"mService", "mProcLock"})
    void setWhenUnimportant(long whenUnimportant) {
    void setWhenUnimportant(long whenUnimportant) {
        mWhenUnimportant = whenUnimportant;
        mWhenUnimportant = whenUnimportant;