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

Unified Diff: sdk/lib/_collection_dev/list.dart

Issue 14425003: Make List.remove return boolean. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 | « runtime/lib/typeddata.dart ('k') | sdk/lib/_internal/compiler/implementation/lib/js_array.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_collection_dev/list.dart
diff --git a/sdk/lib/_collection_dev/list.dart b/sdk/lib/_collection_dev/list.dart
index 93e49aeff356f8d9fbe4dd27957ec96df9d790ef..c14cb502a6be53e582ff8bfeda6da28424a32bc3 100644
--- a/sdk/lib/_collection_dev/list.dart
+++ b/sdk/lib/_collection_dev/list.dart
@@ -35,7 +35,7 @@ abstract class FixedLengthListMixin<E> {
"Cannot add to a fixed-length list");
}
- void remove(E element) {
+ bool remove(E element) {
throw new UnsupportedError(
"Cannot remove from a fixed-length list");
}
@@ -112,7 +112,7 @@ abstract class UnmodifiableListMixin<E> {
void add(E value) {
throw new UnsupportedError(
- "Cannot add to an unmodifiable list");
+ "Cannot add to an unmodifiable list");
}
E insert(int index, E value) {
@@ -130,7 +130,7 @@ abstract class UnmodifiableListMixin<E> {
"Cannot add to an unmodifiable list");
}
- void remove(E element) {
+ bool remove(E element) {
throw new UnsupportedError(
"Cannot remove from an unmodifiable list");
}
« no previous file with comments | « runtime/lib/typeddata.dart ('k') | sdk/lib/_internal/compiler/implementation/lib/js_array.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698