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

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

Issue 1154263003: Revert "Make EfficientLength public, as EfficientLengthIterable." (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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 | « sdk/lib/collection/maps.dart ('k') | sdk/lib/collection/splay_tree.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/collection/queue.dart
diff --git a/sdk/lib/collection/queue.dart b/sdk/lib/collection/queue.dart
index 067c17be6adddb4250f550c7c07b8ea3f001803d..af8e07aedf28eadc8102a528e7270fe8291f04d7 100644
--- a/sdk/lib/collection/queue.dart
+++ b/sdk/lib/collection/queue.dart
@@ -17,7 +17,7 @@ part of dart.collection;
* This goes both for using the [iterator] directly, or for iterating an
* `Iterable` returned by a method like [map] or [where].
*/
-abstract class Queue<E> implements EfficientLengthIterable<E> {
+abstract class Queue<E> implements Iterable<E>, EfficientLength {
/**
* Creates a queue.
@@ -482,7 +482,7 @@ class ListQueue<E> extends Iterable<E> implements Queue<E> {
return queue;
} else {
int capacity = _INITIAL_CAPACITY;
- if (elements is EfficientLengthIterable) {
+ if (elements is EfficientLength) {
capacity = elements.length;
}
ListQueue<E> result = new ListQueue<E>(capacity);
« no previous file with comments | « sdk/lib/collection/maps.dart ('k') | sdk/lib/collection/splay_tree.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698