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

Unified Diff: pkg/compiler/lib/src/js_emitter/new_emitter/model_emitter.dart

Issue 1173403002: dart2js: Fix hints in code base. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Updated to latest revision Created 5 years, 6 months 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: 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) {

Powered by Google App Engine
This is Rietveld 408576698