| Index: runtime/lib/growable_array.dart
|
| ===================================================================
|
| --- runtime/lib/growable_array.dart (revision 12803)
|
| +++ runtime/lib/growable_array.dart (working copy)
|
| @@ -20,7 +20,7 @@
|
| this.length = newLength;
|
| return result;
|
| }
|
| -
|
| +
|
| void setRange(int start, int length, List<T> from, [int startFrom = 0]) {
|
| if (length < 0) {
|
| throw new IllegalArgumentException("negative length $length");
|
| @@ -139,9 +139,6 @@
|
|
|
| T removeLast() {
|
| var len = length - 1;
|
| - if (len < 0) {
|
| - throw new IndexOutOfRangeException(-1);
|
| - }
|
| var elem = this[len];
|
| this[len] = null;
|
| _setLength(len);
|
| @@ -149,9 +146,6 @@
|
| }
|
|
|
| T last() {
|
| - if (length === 0) {
|
| - throw new IndexOutOfRangeException(-1);
|
| - }
|
| return this[length - 1];
|
| }
|
|
|
|
|