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

Unified Diff: pkg/compiler/lib/src/dart_backend/backend.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/dart_backend/backend.dart
diff --git a/pkg/compiler/lib/src/dart_backend/backend.dart b/pkg/compiler/lib/src/dart_backend/backend.dart
index 717d7a7dadce89071d63253c94cf0301a178702a..a82dcbec580322f0e496564290b95032b6709a24 100644
--- a/pkg/compiler/lib/src/dart_backend/backend.dart
+++ b/pkg/compiler/lib/src/dart_backend/backend.dart
@@ -150,9 +150,6 @@ class DartBackend extends Backend {
}
int assembleProgram() {
- ElementAstCreationContext context =
- new _ElementAstCreationContext(compiler, constantSystem);
-
ElementAst computeElementAst(AstElement element) {
return new ElementAst(element.resolvedAst.node,
element.resolvedAst.elements);
@@ -513,20 +510,3 @@ class DartConstantTask extends ConstantCompilerTask
task.constantCompiler.constantValueMap);
}
}
-
-abstract class ElementAstCreationContext {
- DartTypes get dartTypes;
- ConstantSystem get constantSystem;
- InternalErrorFunction get internalError;
-}
-
-class _ElementAstCreationContext implements ElementAstCreationContext {
- final Compiler compiler;
- final ConstantSystem constantSystem;
-
- _ElementAstCreationContext(this.compiler, this.constantSystem);
-
- DartTypes get dartTypes => compiler.types;
-
- InternalErrorFunction get internalError => compiler.internalError;
-}

Powered by Google App Engine
This is Rietveld 408576698