Delete unused code from WeakKeySet.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=75815862
diff --git a/core/src/com/google/inject/internal/WeakKeySet.java b/core/src/com/google/inject/internal/WeakKeySet.java
index 0741cd2..ca137df 100644
--- a/core/src/com/google/inject/internal/WeakKeySet.java
+++ b/core/src/com/google/inject/internal/WeakKeySet.java
@@ -30,7 +30,6 @@
import com.google.inject.Key;
import com.google.inject.internal.util.SourceProvider;
-import java.lang.annotation.Annotation;
import java.util.Map;
import java.util.Set;
@@ -42,7 +41,7 @@
final class WeakKeySet {
private Map<Key<?>, Multiset<Object>> backingMap;
-
+
/**
* This is already locked externally on add and getSources but we need it to handle clean up in
* the evictionCache's RemovalListener.
@@ -155,14 +154,4 @@
&& Objects.equal(source, other.source);
}
}
-
- /**
- * Returns {@code true} if the {@link Key} represents a multibound element.
- */
- private static boolean isMultiBinderKey(Key<?> key) {
- Annotation annotation = key.getAnnotation();
- return annotation != null
- // Can't depend on multibinder in core.
- && "com.google.inject.multibindings.RealElement".equals(annotation.getClass().getName());
- }
}