summaryrefslogtreecommitdiff
path: root/src/library/scalax/collection/immutable/Set.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/library/scalax/collection/immutable/Set.scala')
-rwxr-xr-xsrc/library/scalax/collection/immutable/Set.scala45
1 files changed, 0 insertions, 45 deletions
diff --git a/src/library/scalax/collection/immutable/Set.scala b/src/library/scalax/collection/immutable/Set.scala
deleted file mode 100755
index 9462cd3c5f..0000000000
--- a/src/library/scalax/collection/immutable/Set.scala
+++ /dev/null
@@ -1,45 +0,0 @@
-/* __ *\
-** ________ ___ / / ___ Scala API **
-** / __/ __// _ | / / / _ | (c) 2003-2009, LAMP/EPFL **
-** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
-** /____/\___/_/ |_/____/_/ | | **
-** |/ **
-\* */
-
-// $Id: Set.scala 16893 2009-01-13 13:09:22Z cunei $
-
-
-package scalax.collection.immutable
-
-import generic._
-
-object Set extends generic.SetFactory[Set] {
- private val hashSeed = "Set".hashCode
- def empty[A]: Set[A] = new EmptySet[A]
-}
-
-trait Set[A] extends OrderedIterable[A]
- with collection.Set[A]
- with SetTemplate[Set, A] {
-
- override def newBuilder[B]: Builder[Set, B] = Set.newBuilder[B]
-
- /** Compares this set with another object and returns true, iff the
- * other object is also a set which contains the same elements as
- * this set.
- *
- * @param that the other object
- * @note not necessarily run-time type safe.
- * @return <code>true</code> iff this set and the other set
- * contain the same elements.
- */
- override def equals(that: Any): Boolean = that match {
- case other: Set[_] =>
- this.size == other.size && subsetOf(other.asInstanceOf[Set[A]])
- case _ =>
- false
- }
-
- override def hashCode = (Set.hashSeed /: this)(_ * 41 + _.hashCode)
-
-}