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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart

Issue 99303004: Remove unused API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments 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_backend/namer.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart b/dart/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart
index d13718472dab2e35f7e2c1c9e91505b6c803ed5d..25f86da5aee68a45825e8f1e11636e9450bb30dc 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart
@@ -298,8 +298,6 @@ class Namer implements ClosureNamer {
}
}
- bool isReserved(String name) => name == isolateName;
-
String constantName(Constant constant) {
// In the current implementation it doesn't make sense to give names to
// function constants since the function-implementation itself serves as
@@ -520,13 +518,6 @@ class Namer implements ClosureNamer {
return '$setterPrefix$name';
}
- String publicGetterName(String name) {
- // We dynamically create getters from the field-name. The getter name must
- // therefore be derived from the instance field-name.
- String fieldName = getMappedInstanceName(name);
- return '$getterPrefix$fieldName';
- }
-
String getterNameFromAccessorName(String name) {
// We dynamically create getters from the field-name. The getter name must
// therefore be derived from the instance field-name.
@@ -828,9 +819,6 @@ class Namer implements ClosureNamer {
String getNameOfGlobalField(VariableElement field) => getNameX(field);
- // TODO(ahe): Remove this method. Use get getNameOfMember instead.
- String getNameOfGlobalFunction(FunctionElement element) => getNameX(element);
-
/// Returns true if [element] is stored on current isolate ('$'). We intend
/// to store only mutable static state in [currentIsolate], constants are
/// stored in 'C', and functions, accessors, classes, etc. are stored in one

Powered by Google App Engine
This is Rietveld 408576698