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

Unified Diff: runtime/lib/array.dart

Issue 13956006: Remove insertRange. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Replace type with var.wq 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: runtime/lib/array.dart
diff --git a/runtime/lib/array.dart b/runtime/lib/array.dart
index ef49b7eec28dc6dfd1dfc274775e56095ad324e3..bd736aac4c03b9bed726fa8bbbf23c9f1628ee7d 100644
--- a/runtime/lib/array.dart
+++ b/runtime/lib/array.dart
@@ -86,12 +86,6 @@ class _ObjectArray<E> implements List<E> {
"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;
@@ -318,11 +312,6 @@ class _ImmutableArray<E> implements List<E> {
"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;

Powered by Google App Engine
This is Rietveld 408576698