summaryrefslogtreecommitdiff
path: root/src/library
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-07-16 20:40:11 +0000
committerPaul Phillips <paulp@improving.org>2011-07-16 20:40:11 +0000
commita8e5a7be9f63ef6795524e263777756f0043b8c1 (patch)
tree03b5fd02da78bfb1050490fd06b9859fa42d905b /src/library
parent87d050bf09c7bebaa1c3a8253d172fcc695b6ee4 (diff)
downloadscala-a8e5a7be9f63ef6795524e263777756f0043b8c1.tar.gz
scala-a8e5a7be9f63ef6795524e263777756f0043b8c1.tar.bz2
scala-a8e5a7be9f63ef6795524e263777756f0043b8c1.zip
Removed classes and methods deprecated before 2.8.
Contributed by Simon Ochsenreither.
Diffstat (limited to 'src/library')
-rw-r--r--src/library/scala/collection/immutable/Queue.scala19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/library/scala/collection/immutable/Queue.scala b/src/library/scala/collection/immutable/Queue.scala
index c3ae2ffa19..75c3845f04 100644
--- a/src/library/scala/collection/immutable/Queue.scala
+++ b/src/library/scala/collection/immutable/Queue.scala
@@ -79,14 +79,6 @@ class Queue[+A] protected(protected val in: List[A], protected val out: List[A])
*
* @param elem the element to insert
*/
- @deprecated("Use `enqueue` instead", "2.7.2")
- def +[B >: A](elem: B) = enqueue(elem)
-
- /** Creates a new queue with element added at the end
- * of the old queue.
- *
- * @param elem the element to insert
- */
def enqueue[B >: A](elem: B) = new Queue(elem :: in, out)
/** Returns a new queue with all elements provided by an `Iterable` object
@@ -97,17 +89,6 @@ class Queue[+A] protected(protected val in: List[A], protected val out: List[A])
*
* @param iter an iterable object
*/
- @deprecated("Use `enqueue` instead", "2.7.2")
- def +[B >: A](iter: Iterable[B]) = enqueue(iter)
-
- /** Returns a new queue with all elements provided by an `Iterable` object
- * added at the end of the queue.
- *
- * The elements are prepended in the order they are given out by the
- * iterator.
- *
- * @param iter an iterable object
- */
def enqueue[B >: A](iter: Iterable[B]) =
new Queue(iter.toList.reverse ::: in, out)