Unused method getPropertyByFieldReference() removed from JetScope and its implementations

This commit is contained in:
Andrey Breslav
2013-09-23 23:18:11 -07:00
parent 1f340e3a7a
commit 2954af1b12
12 changed files with 0 additions and 100 deletions
@@ -211,12 +211,6 @@ public abstract class DeserializedMemberScope implements JetScope {
throw new UnsupportedOperationException("Should not be called");
}
@Nullable
@Override
public PropertyDescriptor getPropertyByFieldReference(@NotNull Name fieldName) {
throw new UnsupportedOperationException("Should not be called");
}
private Collection<DeclarationDescriptor> computeAllDescriptors() {
Collection<DeclarationDescriptor> result = new LinkedHashSet<DeclarationDescriptor>(0);
@@ -291,12 +291,6 @@ public class LazyImportScope implements JetScope {
return Collections.emptyList();
}
@Nullable
@Override
public PropertyDescriptor getPropertyByFieldReference(@NotNull Name fieldName) {
return null;
}
@NotNull
@Override
public Collection<DeclarationDescriptor> getAllDescriptors() {
@@ -245,11 +245,6 @@ public abstract class AbstractLazyMemberScope<D extends DeclarationDescriptor, D
return Collections.emptySet();
}
@Override
public PropertyDescriptor getPropertyByFieldReference(@NotNull Name fieldName) {
throw new UnsupportedOperationException(); // TODO
}
@NotNull
@Override
public Collection<DeclarationDescriptor> getAllDescriptors() {
@@ -38,14 +38,6 @@ public class WriteThroughScope extends WritableScopeWithImports {
this.writableWorker = scope;
}
@Override
@Nullable
public PropertyDescriptor getPropertyByFieldReference(@NotNull Name fieldName) {
checkMayRead();
return writableWorker.getPropertyByFieldReference(fieldName);
}
@Override
@NotNull
public Collection<DeclarationDescriptor> getDeclarationsByLabel(LabelName labelName) {