summaryrefslogtreecommitdiffstats
path: root/core/java/android/util
diff options
context:
space:
mode:
authorJesse Wilson <jessewilson@google.com>2011-02-25 17:57:04 -0800
committerJesse Wilson <jessewilson@google.com>2011-02-25 18:39:03 -0800
commitc4e6209c5294da5cbca75eafd0ba5d4c3ed9a5b1 (patch)
tree89d80c26edb1ff13dee53afdf9b4c24b844c6594 /core/java/android/util
parent15b07f4c6b2d19aecfc6751502c218aff3a78313 (diff)
downloadframeworks_base-c4e6209c5294da5cbca75eafd0ba5d4c3ed9a5b1.zip
frameworks_base-c4e6209c5294da5cbca75eafd0ba5d4c3ed9a5b1.tar.gz
frameworks_base-c4e6209c5294da5cbca75eafd0ba5d4c3ed9a5b1.tar.bz2
Remove deprecated and unused entryEvicted method.
Change-Id: Id2ac0913968099eb0c8dfa762b87082ba6bd9cd9 http://b/3461302
Diffstat (limited to 'core/java/android/util')
-rw-r--r--core/java/android/util/LruCache.java20
1 files changed, 4 insertions, 16 deletions
diff --git a/core/java/android/util/LruCache.java b/core/java/android/util/LruCache.java
index a1501e6..834dac3 100644
--- a/core/java/android/util/LruCache.java
+++ b/core/java/android/util/LruCache.java
@@ -139,8 +139,7 @@ public class LruCache<K, V> {
* Caches {@code value} for {@code key}. The value is moved to the head of
* the queue.
*
- * @return the previous value mapped by {@code key}. Although that entry is
- * no longer cached, it has not been passed to {@link #entryEvicted}.
+ * @return the previous value mapped by {@code key}.
*/
public final V put(K key, V value) {
if (key == null || value == null) {
@@ -195,15 +194,14 @@ public class LruCache<K, V> {
evictionCount++;
}
- entryEvicted(key, value);
+ entryRemoved(true, key, value, null);
}
}
/**
* Removes the entry for {@code key} if it exists.
*
- * @return the previous value mapped by {@code key}. Although that entry is
- * no longer cached, it has not been passed to {@link #entryEvicted}.
+ * @return the previous value mapped by {@code key}.
*/
public final V remove(K key) {
if (key == null) {
@@ -226,16 +224,6 @@ public class LruCache<K, V> {
}
/**
- * Calls {@link #entryRemoved}.
- *
- * @deprecated replaced by entryRemoved
- */
- @Deprecated
- protected void entryEvicted(K key, V value) {
- entryRemoved(true, key, value, null);
- }
-
- /**
* Called for entries that have been evicted or removed. This method is
* invoked when a value is evicted to make space, removed by a call to
* {@link #remove}, or replaced by a call to {@link #put}. The default
@@ -291,7 +279,7 @@ public class LruCache<K, V> {
}
/**
- * Clear the cache, calling {@link #entryEvicted} on each removed entry.
+ * Clear the cache, calling {@link #entryRemoved} on each removed entry.
*/
public final void evictAll() {
trimToSize(-1); // -1 will evict 0-sized elements