summaryrefslogtreecommitdiff
path: root/src/library/scala/collection/mutable/SetLike.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-03-27 05:41:47 +0000
committerPaul Phillips <paulp@improving.org>2010-03-27 05:41:47 +0000
commit0c8e2195960d47e5b9be93efb7c95802ae40dca6 (patch)
tree4546dbdde688402560032002b62fbea9d84b1343 /src/library/scala/collection/mutable/SetLike.scala
parentec127ce60de679809a75c3c85f25ec4256b9dd13 (diff)
downloadscala-0c8e2195960d47e5b9be93efb7c95802ae40dca6.tar.gz
scala-0c8e2195960d47e5b9be93efb7c95802ae40dca6.tar.bz2
scala-0c8e2195960d47e5b9be93efb7c95802ae40dca6.zip
TraversableOnce. Review by odersky.
Diffstat (limited to 'src/library/scala/collection/mutable/SetLike.scala')
-rw-r--r--src/library/scala/collection/mutable/SetLike.scala26
1 files changed, 2 insertions, 24 deletions
diff --git a/src/library/scala/collection/mutable/SetLike.scala b/src/library/scala/collection/mutable/SetLike.scala
index f5a942b752..7004e52b8e 100644
--- a/src/library/scala/collection/mutable/SetLike.scala
+++ b/src/library/scala/collection/mutable/SetLike.scala
@@ -164,18 +164,7 @@ trait SetLike[A, +This <: SetLike[A, This] with Set[A]]
"As of 2.8, this operation creates a new set. To add the elements as a\n"+
"side effect to an existing set and return that set itself, use ++=."
)
- override def ++(iter: scala.collection.Traversable[A]): This = clone() ++= iter
-
- /** Adds a number of elements provided by an iterator and returns
- * the collection itself.
- *
- * @param iter the iterator
- */
- @migration(2, 8,
- "As of 2.8, this operation creates a new set. To add the elements as a\n"+
- "side effect to an existing set and return that set itself, use ++=."
- )
- override def ++ (iter: Iterator[A]): This = clone() ++= iter
+ override def ++(xs: TraversableOnce[A]): This = clone() ++= xs
/** Removes a single element from this collection and returns
* the collection itself.
@@ -211,18 +200,7 @@ trait SetLike[A, +This <: SetLike[A, This] with Set[A]]
"As of 2.8, this operation creates a new set. To remove the elements as a\n"+
"side effect to an existing set and return that set itself, use --=."
)
- override def --(iter: scala.collection.Traversable[A]): This = clone() --= iter
-
- /** Removes a number of elements provided by an iterator and returns
- * the collection itself.
- *
- * @param iter the iterator
- */
- @migration(2, 8,
- "As of 2.8, this operation creates a new set. To remove the elements as a\n"+
- "side effect to an existing set and return that set itself, use --=."
- )
- override def --(iter: Iterator[A]): This = clone() --= iter
+ override def --(xs: TraversableOnce[A]): This = clone() --= xs
/** Send a message to this scriptable object.
*