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

Side by Side Diff: runtime/lib/typed_data.dart

Issue 23543007: Remove last vestiges of removeAll from typed lists. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | sdk/lib/_collection_dev/list.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // patch classes for Int8List ..... Float64List and ByteData implementations. 5 // patch classes for Int8List ..... Float64List and ByteData implementations.
6 6
7 patch class Int8List { 7 patch class Int8List {
8 /* patch */ factory Int8List(int length) { 8 /* patch */ factory Int8List(int length) {
9 return new _Int8Array(length); 9 return new _Int8Array(length);
10 } 10 }
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 bool remove(Object element) { 425 bool remove(Object element) {
426 throw new UnsupportedError( 426 throw new UnsupportedError(
427 "Cannot remove from a non-extendable array"); 427 "Cannot remove from a non-extendable array");
428 } 428 }
429 429
430 bool removeAt(int index) { 430 bool removeAt(int index) {
431 throw new UnsupportedError( 431 throw new UnsupportedError(
432 "Cannot remove from a non-extendable array"); 432 "Cannot remove from a non-extendable array");
433 } 433 }
434 434
435 void removeAll(Iterable elements) {
436 throw new UnsupportedError(
437 "Cannot remove from a non-extendable array");
438 }
439
440 void retainAll(Iterable elements) {
441 throw new UnsupportedError(
442 "Cannot remove from a non-extendable array");
443 }
444
445 void removeWhere(bool test(element)) { 435 void removeWhere(bool test(element)) {
446 throw new UnsupportedError( 436 throw new UnsupportedError(
447 "Cannot remove from a non-extendable array"); 437 "Cannot remove from a non-extendable array");
448 } 438 }
449 439
450 void retainWhere(bool test(element)) { 440 void retainWhere(bool test(element)) {
451 throw new UnsupportedError( 441 throw new UnsupportedError(
452 "Cannot remove from a non-extendable array"); 442 "Cannot remove from a non-extendable array");
453 } 443 }
454 444
(...skipping 2685 matching lines...) Expand 10 before | Expand all | Expand 10 after
3140 return value; 3130 return value;
3141 } 3131 }
3142 return object; 3132 return object;
3143 } 3133 }
3144 3134
3145 3135
3146 void _throwRangeError(int index, int length) { 3136 void _throwRangeError(int index, int length) {
3147 String message = "$index must be in the range [0..$length)"; 3137 String message = "$index must be in the range [0..$length)";
3148 throw new RangeError(message); 3138 throw new RangeError(message);
3149 } 3139 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/_collection_dev/list.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698