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

Unified Diff: runtime/lib/array.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
« no previous file with comments | « pkg/yaml/test/yaml_test.dart ('k') | runtime/lib/growable_array.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « pkg/yaml/test/yaml_test.dart ('k') | runtime/lib/growable_array.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698