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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.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/js_emitter/code_emitter_task.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart b/dart/sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart
index 60db17c8d4dfe5e3b2b4b2d3be9cde9a4d05833d..ac52424185f11ffced91faac42810a47d313674e 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart
@@ -748,20 +748,6 @@ class CodeEmitterTask extends CompilerTask {
classElement, properties, additionalProperties[classElement]);
}
- int _selectorRank(Selector selector) {
- int arity = selector.argumentCount * 3;
- if (selector.isGetter()) return arity + 2;
- if (selector.isSetter()) return arity + 1;
- return arity;
- }
-
- int _compareSelectorNames(Selector selector1, Selector selector2) {
- String name1 = selector1.name.toString();
- String name2 = selector2.name.toString();
- if (name1 != name2) return Comparable.compare(name1, name2);
- return _selectorRank(selector1) - _selectorRank(selector2);
- }
-
/**
* Return a function that returns true if its argument is a class
* that needs to be emitted.

Powered by Google App Engine
This is Rietveld 408576698