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

Unified Diff: lib/compiler/compiler.dart

Issue 10471002: Avoid repeated declaration of the same loop variable. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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
« no previous file with comments | « no previous file | lib/compiler/implementation/dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/compiler.dart
diff --git a/lib/compiler/compiler.dart b/lib/compiler/compiler.dart
index b7a780fe82600a5629e77f5890da41c3d79e9b02..4038fad3606ba13f5963af77807f6fcf7c9e30ca 100644
--- a/lib/compiler/compiler.dart
+++ b/lib/compiler/compiler.dart
@@ -46,7 +46,5 @@ Future<String> compile(Uri script,
options);
compiler.run(script);
String code = compiler.assembledCode;
- Completer<String> completer = new Completer<String>();
- completer.complete(code);
- return completer.future;
+ return new Future.immediate(code);
}
« no previous file with comments | « no previous file | lib/compiler/implementation/dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698