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

Unified Diff: sdk/lib/async/timer.dart

Issue 12817003: Change getRange to sublist. Make getRange deprecated. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments Created 7 years, 9 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: sdk/lib/async/timer.dart
diff --git a/sdk/lib/async/timer.dart b/sdk/lib/async/timer.dart
index d4199a3ba7354b9abf1d53a11478897dc4435b11..33bbb47dcffff28caf0d4580df6aa1616d03f542 100644
--- a/sdk/lib/async/timer.dart
+++ b/sdk/lib/async/timer.dart
@@ -61,7 +61,7 @@ abstract class Timer {
_runCallbacks = [];
i++; // Skip the current;
_runCallbacks.addAll(
- runCallbacks.getRange(i, runCallbacks.length - i));
+ runCallbacks.sublist(i));
_runCallbacks.addAll(newCallbacks);
throw;
}

Powered by Google App Engine
This is Rietveld 408576698