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

Unified Diff: runtime/observatory/tests/service/gc_test.dart

Issue 1127693003: Fix analyzer warnings in service tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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: runtime/observatory/tests/service/gc_test.dart
diff --git a/runtime/observatory/tests/service/gc_test.dart b/runtime/observatory/tests/service/gc_test.dart
index 49e653ea9921e1da527a5c33e55ff77e9c95d584..e5adaedf7a262f9854a1b610a5c8bc57b9ca6226 100644
--- a/runtime/observatory/tests/service/gc_test.dart
+++ b/runtime/observatory/tests/service/gc_test.dart
@@ -9,13 +9,12 @@ import 'test_helper.dart';
import 'dart:async';
void script() {
- List<int> data;
var grow;
grow = (int iterations, int size, Duration duration) {
if (iterations <= 0) {
return;
}
- data = new List<int>(size);
+ new List<int>(size);
new Timer(duration, () => grow(iterations - 1, size, duration));
};
grow(100, 1 << 24, new Duration(seconds: 1));

Powered by Google App Engine
This is Rietveld 408576698