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

Unified Diff: runtime/lib/growable_array.dart

Issue 14173003: Remove Collection, Collections and clean up List/Set/Queue implementations of retain/remove. (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/array.dart ('k') | runtime/lib/typeddata.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/growable_array.dart
diff --git a/runtime/lib/growable_array.dart b/runtime/lib/growable_array.dart
index f223a80793658b85cce8e5d7a76071be11d00f87..76cacb46b89819544cc010a79586cf19049e055e 100644
--- a/runtime/lib/growable_array.dart
+++ b/runtime/lib/growable_array.dart
@@ -52,14 +52,6 @@ class _GrowableObjectArray<T> implements List<T> {
}
}
- void removeAll(Iterable elements) {
- IterableMixinWorkaround.removeAllList(this, elements);
- }
-
- void retainAll(Iterable elements) {
- IterableMixinWorkaround.retainAll(this, elements);
- }
-
void removeWhere(bool test(T element)) {
IterableMixinWorkaround.removeWhereList(this, test);
}
@@ -135,7 +127,7 @@ class _GrowableObjectArray<T> implements List<T> {
return new _GrowableObjectArray<T>.withData(data);
}
- factory _GrowableObjectArray.from(Collection<T> other) {
+ factory _GrowableObjectArray.from(Iterable<T> other) {
List<T> result = new _GrowableObjectArray<T>();
result.addAll(other);
return result;
@@ -333,7 +325,7 @@ class _GrowableObjectArray<T> implements List<T> {
}
String toString() {
- return Collections.collectionToString(this);
+ return ToString.iterableToString(this);
}
Iterator<T> get iterator {
« no previous file with comments | « runtime/lib/array.dart ('k') | runtime/lib/typeddata.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698