Chromium Code Reviews| Index: dart/sdk/lib/_internal/compiler/implementation/world.dart |
| diff --git a/dart/sdk/lib/_internal/compiler/implementation/world.dart b/dart/sdk/lib/_internal/compiler/implementation/world.dart |
| index aa485101eed704785d0b33bb27c8c9705f7cf05f..48f69267b9e96944c38c9b029021f5e5d9714a29 100644 |
| --- a/dart/sdk/lib/_internal/compiler/implementation/world.dart |
| +++ b/dart/sdk/lib/_internal/compiler/implementation/world.dart |
| @@ -39,10 +39,6 @@ class World { |
| return _subtypes[cls.declaration]; |
| } |
| - Set<ClassElement> superclassesOf(ClassElement cls) { |
| - return _superclasses[cls.declaration]; |
|
Johnni Winther
2013/12/03 11:52:31
Is _superclasses needed in itself?
ahe
2013/12/04 11:45:43
Removed.
|
| - } |
| - |
| Set<ClassElement> supertypesOf(ClassElement cls) { |
| return _supertypes[cls.declaration]; |
| } |
| @@ -151,10 +147,6 @@ class World { |
| return allFunctions.filter(selector).any((each) => each.isGetter()); |
| } |
| - bool hasAnyUserDefinedSetter(Selector selector) { |
| - return allFunctions.filter(selector).any((each) => each.isSetter()); |
| - } |
| - |
| // Returns whether a subclass of [superclass] implements [type]. |
| bool hasAnySubclassThatImplements(ClassElement superclass, |
| ClassElement type) { |
| @@ -208,24 +200,6 @@ class World { |
| return mask.locateSingleElement(selector, compiler); |
| } |
| - bool hasSingleMatch(Selector selector) { |
| - Iterable<Element> targets = allFunctions.filter(selector); |
| - return targets.length == 1; |
| - } |
| - |
| - Iterable<ClassElement> locateNoSuchMethodHolders(Selector selector) { |
| - Selector noSuchMethodSelector = compiler.noSuchMethodSelector; |
| - ti.TypeMask mask = selector.mask; |
| - if (mask != null) { |
| - noSuchMethodSelector = new TypedSelector(mask, noSuchMethodSelector); |
| - } |
| - ClassElement objectClass = compiler.objectClass; |
| - return allFunctions |
| - .filter(noSuchMethodSelector) |
| - .map((Element member) => member.getEnclosingClass()) |
| - .where((ClassElement holder) => !identical(holder, objectClass)); |
| - } |
| - |
| void addFunctionCalledInLoop(Element element) { |
| functionsCalledInLoop.add(element.declaration); |
| } |