Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2803)

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/world.dart

Issue 99303004: Remove unused API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}

Powered by Google App Engine
This is Rietveld 408576698