Index: runtime/lib/array.dart |
diff --git a/runtime/lib/array.dart b/runtime/lib/array.dart |
index 1aa5bba291223623fb93e14287aabc842d901ee2..bd736aac4c03b9bed726fa8bbbf23c9f1628ee7d 100644 |
--- a/runtime/lib/array.dart |
+++ b/runtime/lib/array.dart |
@@ -81,17 +81,11 @@ class _ObjectArray<E> implements List<E> { |
} |
} |
- void removeRange(int start, int length) { |
+ void removeRange(int start, int end) { |
throw new UnsupportedError( |
"Cannot remove range of a non-extendable array"); |
} |
- void insertRange(int start, int length, [E initialValue = null]) { |
- throw new UnsupportedError( |
- "Cannot insert range in a non-extendable array"); |
- } |
- |
- |
List<E> sublist(int start, [int end]) { |
Arrays.indicesCheck(this, start, end); |
if (end == null) end = this.length; |
@@ -313,16 +307,11 @@ class _ImmutableArray<E> implements List<E> { |
"Cannot modify an immutable array"); |
} |
- void removeRange(int start, int length) { |
+ void removeRange(int start, int end) { |
throw new UnsupportedError( |
"Cannot remove range of an immutable array"); |
} |
- void insertRange(int start, int length, [E initialValue = null]) { |
- throw new UnsupportedError( |
- "Cannot insert range in an immutable array"); |
- } |
- |
List<E> sublist(int start, [int end]) { |
Arrays.indicesCheck(this, start, end); |
if (end == null) end = this.length; |