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

Commit 3792c8cb authored by JW Wang's avatar JW Wang
Browse files

Remove #updateStoredSession (6/n)

Per offline discussion, the mapping between id and session object won't
change over time. There is no need to update the mapping again.

Bug: 167996901
Test: atest StagedInstallTest StagedInstallInternalTest
Change-Id: I24c0d648358d6ffab36a89598c297bdf4f62156e
parent 385fea44
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -164,17 +164,6 @@ public class StagingManager {
        }
    }

    private void updateStoredSession(@NonNull PackageInstallerSession sessionInfo) {
        synchronized (mStagedSessions) {
            PackageInstallerSession storedSession = mStagedSessions.get(sessionInfo.sessionId);
            // storedSession might be null if a call to abortSession was made before the session
            // is updated.
            if (storedSession != null) {
                mStagedSessions.put(sessionInfo.sessionId, sessionInfo);
            }
        }
    }

    private void markBootCompleted() {
        mApexManager.markBootCompleted();
    }
@@ -865,7 +854,6 @@ public class StagingManager {
    }

    void commitSession(@NonNull PackageInstallerSession session) {
        updateStoredSession(session);
        mPreRebootVerificationHandler.startPreRebootVerification(session);
    }