Chromium Code Reviews

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: Addressed review comments Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
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