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

Unified Diff: runtime/lib/collection_patch.dart

Issue 289353002: Add SetBase/SetMixin. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated to not use cloneEmpty Created 6 years, 7 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 | « no previous file | sdk/lib/_internal/lib/collection_patch.dart » ('j') | sdk/lib/collection/hash_set.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/collection_patch.dart
diff --git a/runtime/lib/collection_patch.dart b/runtime/lib/collection_patch.dart
index 81aa289f17ebc60e01e8982f2ca2cd7949a5843d..e0fd182cb5539e4df421b76a83635abdf9042ed5 100644
--- a/runtime/lib/collection_patch.dart
+++ b/runtime/lib/collection_patch.dart
@@ -634,10 +634,6 @@ class _HashSet<E> extends _HashSetBase<E> implements HashSet<E> {
}
}
- void retainAll(Iterable<Object> objectsToRetain) {
- super._retainAll(objectsToRetain, (o) => o is E);
- }
-
void _filterWhere(bool test(E element), bool removeMatching) {
int length = _buckets.length;
for (int index = 0; index < length; index++) {
@@ -757,10 +753,6 @@ class _CustomHashSet<E> extends _HashSet<E> {
}
}
- void retainAll(Iterable<Object> elements) {
- super._retainAll(elements, _validKey);
- }
-
bool _equals(e1, e2) => _equality(e1, e2);
int _hashCode(e) => _hasher(e);
@@ -1225,10 +1217,6 @@ class _LinkedCustomHashSet<E> extends _LinkedHashSet<E> {
}
}
- void retainAll(Iterable<Object> elements) {
- super._retainAll(elements, _validKey);
- }
-
HashSet<E> _newSet() =>
new _LinkedCustomHashSet<E>(_equality, _hasher, _validKey);
}
« no previous file with comments | « no previous file | sdk/lib/_internal/lib/collection_patch.dart » ('j') | sdk/lib/collection/hash_set.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698