Permalink
Browse files

simplify code in OverrideResolver

  • Loading branch information...
1 parent 448260f commit 67589e9d863279de01eeca2481cea99dc8ee7f20 @stepancheg stepancheg committed May 15, 2012
Showing with 0 additions and 6 deletions.
  1. +0 −6 compiler/frontend/src/org/jetbrains/jet/lang/resolve/OverrideResolver.java
@@ -298,12 +298,6 @@ private static void collectMissingImplementations(CallableMemberDescriptor descr
if (overriddenDeclarations.size() == 0) {
throw new IllegalStateException("A 'fake override' must override something");
}
- else if (overriddenDeclarations.size() == 1) {
- CallableMemberDescriptor single = overriddenDeclarations.iterator().next();
- if (single.getModality() == Modality.ABSTRACT) {
- abstractNoImpl.add(single);
- }
- }
else {
List<CallableMemberDescriptor> nonAbstractManyImpl = Lists.newArrayList();
Set<CallableMemberDescriptor> filteredOverriddenDeclarations = OverridingUtil.filterOverrides(Sets.newHashSet(overriddenDeclarations));

0 comments on commit 67589e9

Please sign in to comment.