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

Unified Diff: samples/swarm/swarm_ui_lib/touch/TouchHandler.dart

Issue 12817003: Change getRange to sublist. Make getRange deprecated. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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: samples/swarm/swarm_ui_lib/touch/TouchHandler.dart
diff --git a/samples/swarm/swarm_ui_lib/touch/TouchHandler.dart b/samples/swarm/swarm_ui_lib/touch/TouchHandler.dart
index ea7dff2d7c98e7aac76972006374fcbd5fb37e04..daca5d3f3123f562f3c6f9e05497f64da55a56e9 100644
--- a/samples/swarm/swarm_ui_lib/touch/TouchHandler.dart
+++ b/samples/swarm/swarm_ui_lib/touch/TouchHandler.dart
@@ -351,7 +351,7 @@ class TouchHandler {
}
static List<int> _removeFirstN(List<int> list, int n) {
- return list.getRange(n, list.length - n);
+ return list.sublist(n);
}
/**

Powered by Google App Engine
This is Rietveld 408576698