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

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

Issue 2930713003: Deprecate LinkedList.
Patch Set: Deprecate LinkedList and LinkedQueue. Created 3 years, 5 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/linked_list.dart ('k') | no next file » | 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 7eb77d448feddeda9fc26b72ef0988962ad44384..d62e49497ec3ffd4a02eb414fa1ffc6d89212fad 100644
--- a/sdk/lib/collection/queue.dart
+++ b/sdk/lib/collection/queue.dart
@@ -117,6 +117,7 @@ class _DoubleLink<Link extends _DoubleLink<Link>> {
* An entry in a doubly linked list. It contains a pointer to the next
* entry, the previous entry, and the boxed element.
*/
+@deprecated
class DoubleLinkedQueueEntry<E> extends _DoubleLink<DoubleLinkedQueueEntry<E>> {
/// The element in the queue.
E element;
@@ -252,8 +253,12 @@ class _DoubleLinkedQueueSentinel<E> extends _DoubleLinkedQueueEntry<E> {
/**
* A [Queue] implementation based on a double-linked list.
*
+ * Deprecated. Use [ListQueue] or `DoubleLinkedQueue` from package
+ * `collection`, instead. [https://pub.dartlang.org/packages/collection]
+ *
* Allows constant time add, remove-at-ends and peek operations.
*/
+@deprecated
class DoubleLinkedQueue<E> extends Iterable<E> implements Queue<E> {
_DoubleLinkedQueueSentinel<E> _sentinel;
int _elementCount = 0;
« no previous file with comments | « sdk/lib/collection/linked_list.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698