diff options
Diffstat (limited to 'src/library/scala/collection/mutable/SynchronizedPriorityQueue.scala')
-rw-r--r-- | src/library/scala/collection/mutable/SynchronizedPriorityQueue.scala | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/library/scala/collection/mutable/SynchronizedPriorityQueue.scala b/src/library/scala/collection/mutable/SynchronizedPriorityQueue.scala index 066c96a651..61cb0a1331 100644 --- a/src/library/scala/collection/mutable/SynchronizedPriorityQueue.scala +++ b/src/library/scala/collection/mutable/SynchronizedPriorityQueue.scala @@ -39,23 +39,11 @@ class SynchronizedPriorityQueue[A](implicit ord: Ordering[A]) extends PriorityQu this } - /** Adds all elements provided by an <code>Iterable</code> object - * into the priority queue. - * - * @param iter an iterable object - */ - def ++=(iter: scala.collection.Iterable[A]): this.type = { - synchronized { - super.++=(iter) - } - this - } - /** Adds all elements provided by an iterator into the priority queue. * * @param it an iterator */ - override def ++=(it: Iterator[A]): this.type = { + override def ++=(it: TraversableOnce[A]): this.type = { synchronized { super.++=(it) } |