diff --git a/scala2-library-cc/src/scala/collection/Factory.scala b/scala2-library-cc/src/scala/collection/Factory.scala index d66ab08e4abb..99f584b972fc 100644 --- a/scala2-library-cc/src/scala/collection/Factory.scala +++ b/scala2-library-cc/src/scala/collection/Factory.scala @@ -296,21 +296,12 @@ object IterableFactory { } } -// !!! Needed to add this separate trait -//trait FreeSeqFactory[+CC[A]] extends IterableFactory[CC]: -// def from[A](source: IterableOnce[A]^): CC[A] -// override def apply[A](elems: A*): CC[A] - -// type FreeSeqFactory[+CC[A] <: SeqOps[A, Seq, Seq[A]]] = SeqFactory[CC] - /** * @tparam CC Collection type constructor (e.g. `List`) */ trait SeqFactory[+CC[A] <: SeqOps[A, Seq, Seq[A]]] extends IterableFactory[CC] { import SeqFactory.UnapplySeqWrapper final def unapplySeq[A](x: CC[A] @uncheckedVariance): UnapplySeqWrapper[A] = new UnapplySeqWrapper(x) // TODO is uncheckedVariance sound here? - def from[A](source: IterableOnce[A]^): CC[A] - override def apply[A](elems: A*): CC[A] = from(elems) } object SeqFactory {