diff options
author | Martin Odersky <odersky@gmail.com> | 2009-02-15 15:41:08 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2009-02-15 15:41:08 +0000 |
commit | f2032c958854476587f6e78668b16216a28dc9a8 (patch) | |
tree | ca223769bb1e6fcca3d69b62364646ccc817de59 /src/library/scalax/collection/generic/covariant/IterableFactory.scala | |
parent | 04840e2ed4530df9a5ca59b984bf2b37a976dc70 (diff) | |
download | scala-f2032c958854476587f6e78668b16216a28dc9a8.tar.gz scala-f2032c958854476587f6e78668b16216a28dc9a8.tar.bz2 scala-f2032c958854476587f6e78668b16216a28dc9a8.zip |
removed generic/mutable, generic/covariant pack...
removed generic/mutable, generic/covariant packages
Diffstat (limited to 'src/library/scalax/collection/generic/covariant/IterableFactory.scala')
-rwxr-xr-x | src/library/scalax/collection/generic/covariant/IterableFactory.scala | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/library/scalax/collection/generic/covariant/IterableFactory.scala b/src/library/scalax/collection/generic/covariant/IterableFactory.scala deleted file mode 100755 index 0fd2284cea..0000000000 --- a/src/library/scalax/collection/generic/covariant/IterableFactory.scala +++ /dev/null @@ -1,20 +0,0 @@ -package scalax.collection.generic.covariant - -trait IterableFactory[CC[+A] <: Iterable[A]] extends generic.IterableFactory[CC] { - - /** The empty collection of type CC */ - val empty: CC[Nothing] - - override protected def newBuilder[A]: Builder[CC, A] = - empty.newBuilder[A].asInstanceOf[Builder[CC, A]] - // the cast here is unavoidable because CC is not constrained with covariant.IterableTemplate[CC, A] - // It's can't be constrained because some suntype links between covariant and generic Templates - // are missing. That's a consequence of our hacks to have both nonvariant and covariant templates. - - /** Create CC collection of specified elements */ - override def apply[A](args: A*): CC[A] = - (empty ++ args.asInstanceOf[Iterable[A]]).asInstanceOf[CC[A]] - // the cast here is unavoidable because CC is not constrained with covariant.IterableTemplate[CC, A] - // It's can't be constrained because some suntype links between covariant and generic Templates - // are missing. That's a consequence of our hacks to have both nonvariant and covariant templates. -} |