createConcurrentMap() is no longer needed

This commit is contained in:
Andrey Breslav
2013-02-08 18:59:42 +04:00
parent ccbd4018b1
commit 6f851845c6
3 changed files with 0 additions and 13 deletions
@@ -91,11 +91,8 @@ public abstract class AbstractLazyMemberScope<D extends DeclarationDescriptor, D
@Nullable
private ClassDescriptor resolveClassOrObjectDescriptor(@NotNull Name name, boolean object) {
Collection<JetClassOrObject> classOrObjectDeclarations = declarationProvider.getClassOrObjectDeclarations(name);
if (classOrObjectDeclarations.isEmpty()) return null;
for (JetClassOrObject classOrObjectDeclaration : classOrObjectDeclarations) {
// TODO: when enum entries with constructors are dropped, replace with declaresObjectOrEnumConstant()
if (object != declaresObjectOrEnumConstant(classOrObjectDeclaration)) continue;
ClassDescriptor classDescriptor = new LazyClassDescriptor(resolveSession, thisDescriptor, name,
@@ -43,12 +43,6 @@ public class LockBasedStorageManager implements StorageManager {
}
};
@NotNull
@Override
public <K, V> ConcurrentMap<K, V> createConcurrentMap() {
return new ConcurrentHashMap<K, V>();
}
@NotNull
@Override
public <K, V> Function<K, V> createMemoizedFunction(@NotNull final Function<K, V> compute, @NotNull final MemoizationMode mode) {
@@ -22,12 +22,8 @@ import org.jetbrains.annotations.NotNull;
import org.jetbrains.jet.lang.resolve.BindingTrace;
import java.util.Collection;
import java.util.concurrent.ConcurrentMap;
public interface StorageManager {
@NotNull
<K, V> ConcurrentMap<K, V> createConcurrentMap();
/**
* Given a function compute: K -> V create a memoized version of it that computes a value only once for each key
* @param compute the function to be memoized