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

Unified Diff: sdk/lib/_internal/compiler/implementation/lib/js_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
Index: sdk/lib/_internal/compiler/implementation/lib/js_array.dart
diff --git a/sdk/lib/_internal/compiler/implementation/lib/js_array.dart b/sdk/lib/_internal/compiler/implementation/lib/js_array.dart
index 9bd213b9a292e695bfb464a09a18927ef72cd6f1..7a57e31d26ac0e8857c97f20964969f0ab8b4787 100644
--- a/sdk/lib/_internal/compiler/implementation/lib/js_array.dart
+++ b/sdk/lib/_internal/compiler/implementation/lib/js_array.dart
@@ -52,14 +52,6 @@ class JSArray<E> extends Interceptor implements List<E>, JSIndexable {
}
}
- void removeAll(Iterable elements) {
- IterableMixinWorkaround.removeAllList(this, elements);
- }
-
- void retainAll(Iterable elements) {
- IterableMixinWorkaround.retainAll(this, elements);
- }
-
void removeWhere(bool test(E element)) {
// This could, and should, be optimized.
IterableMixinWorkaround.removeWhereList(this, test);
@@ -270,7 +262,7 @@ class JSArray<E> extends Interceptor implements List<E>, JSIndexable {
bool get isEmpty => length == 0;
- String toString() => Collections.collectionToString(this);
+ String toString() => ToString.iterableToString(this);
List<E> toList({ bool growable: true }) =>
new List<E>.from(this, growable: growable);

Powered by Google App Engine
This is Rietveld 408576698