Index: pkg/compiler/lib/src/js_emitter/new_emitter/model_emitter.dart |
diff --git a/pkg/compiler/lib/src/js_emitter/new_emitter/model_emitter.dart b/pkg/compiler/lib/src/js_emitter/new_emitter/model_emitter.dart |
index 61e206e991dbb59025f5116dc1537d9e1990b693..3ce64378629b5edac168920fc746c13481390336 100644 |
--- a/pkg/compiler/lib/src/js_emitter/new_emitter/model_emitter.dart |
+++ b/pkg/compiler/lib/src/js_emitter/new_emitter/model_emitter.dart |
@@ -6,7 +6,6 @@ library dart2js.new_js_emitter.model_emitter; |
import '../../constants/values.dart' show ConstantValue, FunctionConstantValue; |
import '../../dart2jslib.dart' show Compiler; |
-import '../../dart_types.dart' show DartType; |
import '../../elements/elements.dart' show ClassElement, FunctionElement; |
import '../../js/js.dart' as js; |
import '../../js_backend/js_backend.dart' show |
@@ -478,17 +477,6 @@ class ModelEmitter { |
} |
List<js.Property> emitMetadata(Program program) { |
- // Unparses all given js-expressions (suitable for `expressionCompile`) and |
- // returns the result in a js-array. |
- // If the given [expressions] is null returns the empty js-array. |
- js.ArrayInitializer unparseExpressions(List<js.Expression> expressions) { |
- if (expressions == null) expressions = <js.Expression>[]; |
- List<js.LiteralString> unparsedExpressions = expressions |
- .map((expr) => unparse(compiler, expr, protectForEval: false)) |
- .toList(); |
- return new js.ArrayInitializer(unparsedExpressions); |
- } |
- |
List<js.Property> metadataGlobals = <js.Property>[]; |
js.Property createGlobal(js.Expression metadata, String global) { |