Index: pkg/compiler/lib/src/js_backend/constant_handler_javascript.dart |
diff --git a/pkg/compiler/lib/src/js_backend/constant_handler_javascript.dart b/pkg/compiler/lib/src/js_backend/constant_handler_javascript.dart |
index 36bd7685b5d775a19384dd664d992b539edb4680..6077e6d0579633df18e7acdbcf92b904f48d2159 100644 |
--- a/pkg/compiler/lib/src/js_backend/constant_handler_javascript.dart |
+++ b/pkg/compiler/lib/src/js_backend/constant_handler_javascript.dart |
@@ -146,21 +146,6 @@ class JavaScriptConstantCompiler extends ConstantCompilerBase |
compiledConstants.add(constant); |
} |
- /** |
- * Returns an [Iterable] of static non final fields that need to be |
- * initialized. The fields list must be evaluated in order since they might |
- * depend on each other. |
- */ |
- Iterable<VariableElement> getStaticNonFinalFieldsForEmission() { |
- return initialVariableValues.keys.where((element) { |
- return element.kind == ElementKind.FIELD && |
- !element.isInstanceMember && |
- !element.modifiers.isFinal && |
- // The const fields are all either emitted elsewhere or inlined. |
- !element.modifiers.isConst; |
- }); |
- } |
- |
List<VariableElement> getLazilyInitializedFieldsForEmission() { |
return new List<VariableElement>.from(lazyStatics); |
} |
@@ -194,15 +179,6 @@ class JavaScriptConstantCompiler extends ConstantCompilerBase |
return result; |
} |
- ConstantValue getInitialValueFor(VariableElement element) { |
- ConstantExpression initialValue = |
- initialVariableValues[element.declaration]; |
- if (initialValue == null) { |
- reporter.internalError(element, "No initial value for given element."); |
- } |
- return getConstantValue(initialValue); |
- } |
- |
ConstantExpression compileNode(Node node, TreeElements elements, |
{bool enforceConst: true}) { |
return compileNodeWithDefinitions(node, elements, isConst: enforceConst); |