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

Commit bb184b02 authored by Shai Barack's avatar Shai Barack
Browse files

Delete dead trim code

This code was used in tests as part of b/135148702
back in 2019.
Unfortunately we never moved forward with this idea.

I looked in code search and field traces.
All evidence suggests that this code doesn't run today.

Bug: 135148702
Change-Id: I85a9ce668dee472ced62b619e3a61afe1c3928d5
Flag: EXEMPT deleted dead code
parent 7e5fe5f4
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -7362,16 +7362,6 @@ public final class ActivityThread extends ClientTransactionHandler
        }

        WindowManagerGlobal.getInstance().trimMemory(level);

        if (SystemProperties.getInt("debug.am.run_gc_trim_level", Integer.MAX_VALUE) <= level) {
            unscheduleGcIdler();
            doGcIfNeeded("tm");
        }
        if (SystemProperties.getInt("debug.am.run_mallopt_trim_level", Integer.MAX_VALUE)
                <= level) {
            unschedulePurgeIdler();
            purgePendingResources();
        }
    }

    private void setupGraphicsSupport(Context context) {