summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/IconCache.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2015-05-26 09:14:49 -0700
committerSunny Goyal <sunnygoyal@google.com>2015-05-26 09:14:49 -0700
commitf0e1fd9938b26fa2fa7484613f6160e99c157a9d (patch)
tree3583879d81ca529037ecd1e7f865c3558e6e58f2 /src/com/android/launcher3/IconCache.java
parent8f73d7032e557c6f01a9954a2ec0f386987946e4 (diff)
downloadandroid_packages_apps_Trebuchet-f0e1fd9938b26fa2fa7484613f6160e99c157a9d.tar.gz
android_packages_apps_Trebuchet-f0e1fd9938b26fa2fa7484613f6160e99c157a9d.tar.bz2
android_packages_apps_Trebuchet-f0e1fd9938b26fa2fa7484613f6160e99c157a9d.zip
Removing file IO used for checking configuration change
> This check was used for flushing the cache, but since the cache is backed by a DB, this has no effect as same icons are loaded again Change-Id: Ib7d8a8598c5d225d922e095c899dc11ad06f2b7a
Diffstat (limited to 'src/com/android/launcher3/IconCache.java')
-rw-r--r--src/com/android/launcher3/IconCache.java9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/com/android/launcher3/IconCache.java b/src/com/android/launcher3/IconCache.java
index 0c91a7113..77d90456e 100644
--- a/src/com/android/launcher3/IconCache.java
+++ b/src/com/android/launcher3/IconCache.java
@@ -49,10 +49,8 @@ import com.android.launcher3.util.Thunk;
import java.util.HashMap;
import java.util.HashSet;
-import java.util.Iterator;
import java.util.List;
import java.util.Locale;
-import java.util.Map.Entry;
import java.util.Stack;
/**
@@ -367,13 +365,6 @@ public class IconCache {
}
/**
- * Empty out the cache.
- */
- public synchronized void flush() {
- mCache.clear();
- }
-
- /**
* Fetches high-res icon for the provided ItemInfo and updates the caller when done.
* @return a request ID that can be used to cancel the request.
*/