Index: sdk/lib/core/list.dart |
diff --git a/sdk/lib/core/list.dart b/sdk/lib/core/list.dart |
index a2c299aceea1c9e9c9a269cb07eface79834812a..37828c79c3a65ca177ed00454220ccf16f7a4cd0 100644 |
--- a/sdk/lib/core/list.dart |
+++ b/sdk/lib/core/list.dart |
@@ -304,6 +304,26 @@ abstract class NonExtensibleListMixin<E> |
"Cannot add to an unmodifiable list"); |
} |
+ void remove(E element) { |
+ throw new UnsupportedError( |
+ "Cannot remove in an unmodifiable list"); |
floitsch
2013/01/17 13:36:58
remove from ...
Lasse Reichstein Nielsen
2013/01/18 11:41:48
Done.
|
+ } |
+ |
+ void removeAll(Iterable elements) { |
+ throw new UnsupportedError( |
+ "Cannot remove in an unmodifiable list"); |
+ } |
+ |
+ void retainAll(Iterable elements) { |
+ throw new UnsupportedError( |
+ "Cannot remove in an unmodifiable list"); |
+ } |
+ |
+ void removeMatching(bool test(E element)) { |
+ throw new UnsupportedError( |
+ "Cannot remove in an unmodifiable list"); |
+ } |
+ |
void sort([Comparator<E> compare]) { |
throw new UnsupportedError( |
"Cannot modify an unmodifiable list"); |