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

Unified Diff: sdk/lib/_collection_dev/list.dart

Issue 13956006: Remove insertRange. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebuild DOM (unrelated CL) and update status files. Created 7 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: sdk/lib/_collection_dev/list.dart
diff --git a/sdk/lib/_collection_dev/list.dart b/sdk/lib/_collection_dev/list.dart
index 6d955aef6a8d54477baac5d714820f3affbf2dbd..3deb4050772b2968608f25dcb7fff25032c93a0b 100644
--- a/sdk/lib/_collection_dev/list.dart
+++ b/sdk/lib/_collection_dev/list.dart
@@ -70,15 +70,10 @@ abstract class FixedLengthListMixin<E> {
"Cannot remove from a fixed-length list");
}
- void removeRange(int start, int length) {
+ void removeRange(int start, int end) {
throw new UnsupportedError(
"Cannot remove from a fixed-length list");
}
-
- void insertRange(int start, int length, [E initialValue]) {
- throw new UnsupportedError(
- "Cannot insert range in a fixed-length list");
- }
}
/**
@@ -165,15 +160,10 @@ abstract class UnmodifiableListMixin<E> {
"Cannot modify an unmodifiable list");
}
- void removeRange(int start, int length) {
+ void removeRange(int start, int end) {
throw new UnsupportedError(
"Cannot remove from an unmodifiable list");
}
-
- void insertRange(int start, int length, [E initialValue]) {
- throw new UnsupportedError(
- "Cannot insert range in an unmodifiable list");
- }
}
/**
« no previous file with comments | « samples/swarm/swarm_ui_lib/observable/observable.dart ('k') | sdk/lib/_internal/compiler/implementation/lib/js_array.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698