Commit 9502284f authored by Brandon Wylie's avatar Brandon Wylie Committed by Commit Bot

Remove unused/deprecated method #getReferencePool

Change-Id: Id23ebabc4f86c5b2a2bc6b88d69877aad9c8bcf9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2425030
Commit-Queue: Brandon Wylie <wylieb@chromium.org>
Reviewed-by: default avatarTed Choc <tedchoc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#818592}
parent 7f2b378c
......@@ -40,7 +40,6 @@ import org.chromium.base.ApplicationStatus;
import org.chromium.base.Callback;
import org.chromium.base.CommandLine;
import org.chromium.base.ContextUtils;
import org.chromium.base.DiscardableReferencePool;
import org.chromium.base.MathUtils;
import org.chromium.base.StrictModeContext;
import org.chromium.base.SysUtils;
......@@ -293,7 +292,6 @@ public abstract class ChromeActivity<C extends ChromeActivityComponent>
private int mUiMode;
private int mDensityDpi;
private final DiscardableReferencePool mReferencePool = new DiscardableReferencePool();
private final ManualFillingComponent mManualFillingComponent =
ManualFillingComponentFactory.createComponent();
......@@ -1894,7 +1892,6 @@ public abstract class ChromeActivity<C extends ChromeActivityComponent>
public void onTrimMemory(int level) {
super.onTrimMemory(level);
if (ChromeApplication.isSevereMemorySignal(level)) {
mReferencePool.drain();
clearToolbarResourceCache();
}
}
......@@ -2238,16 +2235,6 @@ public abstract class ChromeActivity<C extends ChromeActivityComponent>
*/
public void onExitVr() {}
/**
* @return the reference pool for this activity.
* @deprecated Use {@link GlobalDiscardableReferencePool#getReferencePool} instead.
*/
// TODO(bauerb): Migrate clients to GlobalDiscardableReferencePool#getReferencePool.
@Deprecated
public DiscardableReferencePool getReferencePool() {
return mReferencePool;
}
private void clearToolbarResourceCache() {
ControlContainer controlContainer = (ControlContainer) findViewById(R.id.control_container);
if (controlContainer != null) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment