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

Unified Diff: sdk/lib/collection/hash_set.dart

Issue 12413023: "Reverting 19985" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 | « sdk/lib/collection/collections.dart ('k') | sdk/lib/collection/linked_hash_set.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/collection/hash_set.dart
diff --git a/sdk/lib/collection/hash_set.dart b/sdk/lib/collection/hash_set.dart
index ca32220cf7dcf6aafabd289480b6f829ef174e03..48331100aec62487e2ea622035b6468328ceaeac 100644
--- a/sdk/lib/collection/hash_set.dart
+++ b/sdk/lib/collection/hash_set.dart
@@ -86,19 +86,12 @@ class HashSet<E> extends Collection<E> implements Set<E> {
}
// Set.
- bool isSubsetOf(Collection<E> other) {
- // Deprecated, and using old signature.
- Set otherSet;
- if (other is Set) {
- otherSet = other;
- } else {
- otherSet = other.toSet();
- }
- return IterableMixinWorkaround.setContainsAll(otherSet, this);
+ bool isSubsetOf(Set<E> other) {
+ return IterableMixinWorkaround.isSubsetOfSet(this, other);
}
- bool containsAll(Iterable<E> other) {
- return IterableMixinWorkaround.setContainsAll(this, other);
+ bool containsAll(Set<E> other) {
+ return IterableMixinWorkaround.isSubsetOfSet(other, this);
}
Set<E> intersection(Set<E> other) {
« no previous file with comments | « sdk/lib/collection/collections.dart ('k') | sdk/lib/collection/linked_hash_set.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698