Removed stuff not used anymore

This commit is contained in:
Valentin Kipyatkov
2014-11-01 00:47:31 +03:00
parent ccb7ba5517
commit ad9bb5c2a5
@@ -37,11 +37,6 @@ public class JetScopeSelectorUtil {
Collection<D> get(JetScope scope, Name name); Collection<D> get(JetScope scope, Name name);
} }
public interface ScopeDescriptorSelector<D extends DeclarationDescriptor> {
@NotNull
Collection<D> get(JetScope scope);
}
@NotNull @NotNull
public static <D extends DeclarationDescriptor> Collection<D> collect(Collection<JetScope> scopes, ScopeByNameMultiSelector<D> selector, Name name) { public static <D extends DeclarationDescriptor> Collection<D> collect(Collection<JetScope> scopes, ScopeByNameMultiSelector<D> selector, Name name) {
Set<D> descriptors = new HashSet<D>(); Set<D> descriptors = new HashSet<D>();
@@ -53,17 +48,6 @@ public class JetScopeSelectorUtil {
return descriptors; return descriptors;
} }
@NotNull
public static <D extends DeclarationDescriptor> Collection<D> collect(Collection<JetScope> scopes, ScopeDescriptorSelector<D> selector) {
Set<D> descriptors = new HashSet<D>();
for (JetScope scope : scopes) {
descriptors.addAll(selector.get(scope));
}
return descriptors;
}
public static final ScopeByNameSelector<ClassifierDescriptor> CLASSIFIER_DESCRIPTOR_SCOPE_SELECTOR = public static final ScopeByNameSelector<ClassifierDescriptor> CLASSIFIER_DESCRIPTOR_SCOPE_SELECTOR =
new ScopeByNameSelector<ClassifierDescriptor>() { new ScopeByNameSelector<ClassifierDescriptor>() {
@Nullable @Nullable
@@ -109,15 +93,6 @@ public class JetScopeSelectorUtil {
} }
}; };
public static final ScopeDescriptorSelector<DeclarationDescriptor> ALL_DESCRIPTORS_SCOPE_SELECTOR =
new ScopeDescriptorSelector<DeclarationDescriptor>() {
@NotNull
@Override
public Collection<DeclarationDescriptor> get(@NotNull JetScope scope) {
return scope.getAllDescriptors();
}
};
@Nullable @Nullable
public static <D extends DeclarationDescriptor> D getFirstMatch( public static <D extends DeclarationDescriptor> D getFirstMatch(
@NotNull JetScope[] scopes, @NotNull JetScope[] scopes,