Revert "jdr: properly fetch supertype member names"

This reverts commit 9b13a308f8.
This commit is contained in:
Stepan Koltsov
2012-06-18 20:42:33 +04:00
parent a1dfcfc55d
commit 5e1e685d69
5 changed files with 16 additions and 61 deletions
@@ -88,9 +88,6 @@ public interface JetScope {
Collection<DeclarationDescriptor> getAllDescriptors();
@NotNull
Collection<Name> getAllDescriptorNames();
/**
* @return EFFECTIVE implicit receiver at this point (may be corresponding to an outer scope)
*/
@@ -16,13 +16,9 @@
package org.jetbrains.jet.lang.resolve.scopes;
import com.google.common.collect.Sets;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.jet.lang.descriptors.DeclarationDescriptor;
import org.jetbrains.jet.lang.resolve.name.Name;
import java.util.Collection;
import java.util.Set;
/**
* @author Stepan Koltsov
@@ -34,14 +30,4 @@ public abstract class JetScopeBase implements JetScope {
return getAllDescriptors(DescriptorPredicate.all());
}
@NotNull
@Override
public Collection<Name> getAllDescriptorNames() {
// dummy implementation
Set<Name> r = Sets.newHashSet();
for (DeclarationDescriptor descriptor : getAllDescriptors()) {
r.add(descriptor.getName());
}
return r;
}
}