Index: sdk/lib/_internal/compiler/implementation/lib/js_array.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/lib/js_array.dart b/sdk/lib/_internal/compiler/implementation/lib/js_array.dart |
index 5e3140032e6c0a8eee95d30ca7f01751cab1ce64..b82e58afaeda320e485a2d4a031feac6468f326a 100644 |
--- a/sdk/lib/_internal/compiler/implementation/lib/js_array.dart |
+++ b/sdk/lib/_internal/compiler/implementation/lib/js_array.dart |
@@ -160,34 +160,6 @@ class JSArray<E> extends Interceptor implements List<E>, JSIndexable { |
return IterableMixinWorkaround.getRangeList(this, start, end); |
} |
- void insertRange(int start, int length, [E initialValue]) { |
- checkGrowable(this, 'insertRange'); |
- if (length == 0) { |
- return; |
- } |
- if (length is !int) throw new ArgumentError(length); |
- if (length < 0) throw new ArgumentError(length); |
- if (start is !int) throw new ArgumentError(start); |
- |
- var receiver = this; |
- var receiverLength = receiver.length; |
- if (start < 0 || start > receiverLength) { |
- throw new RangeError.value(start); |
- } |
- receiver.length = receiverLength + length; |
- Arrays.copy(receiver, |
- start, |
- receiver, |
- start + length, |
- receiverLength - start); |
- if (initialValue != null) { |
- for (int i = start; i < start + length; i++) { |
- receiver[i] = initialValue; |
- } |
- } |
- receiver.length = receiverLength + length; |
- } |
- |
E get first { |
if (length > 0) return this[0]; |
throw new StateError("No elements"); |