diff options
author | Paul Phillips <paulp@improving.org> | 2010-03-27 05:41:47 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-03-27 05:41:47 +0000 |
commit | 0c8e2195960d47e5b9be93efb7c95802ae40dca6 (patch) | |
tree | 4546dbdde688402560032002b62fbea9d84b1343 /src/library/scala/collection/mutable/QueueProxy.scala | |
parent | ec127ce60de679809a75c3c85f25ec4256b9dd13 (diff) | |
download | scala-0c8e2195960d47e5b9be93efb7c95802ae40dca6.tar.gz scala-0c8e2195960d47e5b9be93efb7c95802ae40dca6.tar.bz2 scala-0c8e2195960d47e5b9be93efb7c95802ae40dca6.zip |
TraversableOnce. Review by odersky.
Diffstat (limited to 'src/library/scala/collection/mutable/QueueProxy.scala')
-rw-r--r-- | src/library/scala/collection/mutable/QueueProxy.scala | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/library/scala/collection/mutable/QueueProxy.scala b/src/library/scala/collection/mutable/QueueProxy.scala index a322934f63..b2548b26cc 100644 --- a/src/library/scala/collection/mutable/QueueProxy.scala +++ b/src/library/scala/collection/mutable/QueueProxy.scala @@ -45,24 +45,13 @@ trait QueueProxy[A] extends Queue[A] with Proxy { */ override def +=(elem: A): this.type = { self += elem; this } - /** Adds all elements provided by an <code>Iterable</code> object - * 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 ++=(iter: scala.collection.Iterable[A]): this.type = { - self ++= iter - this - } - /** Adds all elements provided by an iterator * at the end of the queue. The elements are prepended in the order they * are given out by the iterator. * * @param iter an iterator */ - override def ++=(it: Iterator[A]): this.type = { + override def ++=(it: TraversableOnce[A]): this.type = { self ++= it this } |