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

Unified Diff: pkg/compiler/lib/src/js_backend/codegen/codegen.dart

Issue 737363002: Remove unused code (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_backend/codegen/codegen.dart
diff --git a/pkg/compiler/lib/src/js_backend/codegen/codegen.dart b/pkg/compiler/lib/src/js_backend/codegen/codegen.dart
index 9dbaad40aa98b688eb834730d87bc21b3207a19c..84d92ef2c75ce795101e0832e4cb64a160d857dd 100644
--- a/pkg/compiler/lib/src/js_backend/codegen/codegen.dart
+++ b/pkg/compiler/lib/src/js_backend/codegen/codegen.dart
@@ -218,7 +218,6 @@ class CodeGenerator extends tree_ir.Visitor<dynamic, js.Expression> {
@override
js.Expression visitVariable(tree_ir.Variable node) {
return new js.VariableUse(getVariableName(node));
- // TODO: implement visitVariable
}
@override
@@ -254,10 +253,6 @@ class CodeGenerator extends tree_ir.Visitor<dynamic, js.Expression> {
@override
void visitAssign(tree_ir.Assign node) {
-
- bool isFirstOccurrence = (variableNames[node.variable] == null);
- bool isDeclaredHere = node.variable.host.element == currentFunction;
- String name = getVariableName(node.variable);
tree_ir.Expression value = node.definition;
js.Expression definition = visitExpression(value);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698