File tree 1 file changed +0
-9
lines changed
scala2-library-cc/src/scala/collection
1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -296,21 +296,12 @@ object IterableFactory {
296
296
}
297
297
}
298
298
299
- // !!! Needed to add this separate trait
300
- // trait FreeSeqFactory[+CC[A]] extends IterableFactory[CC]:
301
- // def from[A](source: IterableOnce[A]^): CC[A]
302
- // override def apply[A](elems: A*): CC[A]
303
-
304
- // type FreeSeqFactory[+CC[A] <: SeqOps[A, Seq, Seq[A]]] = SeqFactory[CC]
305
-
306
299
/**
307
300
* @tparam CC Collection type constructor (e.g. `List`)
308
301
*/
309
302
trait SeqFactory [+ CC [A ] <: SeqOps [A , Seq , Seq [A ]]] extends IterableFactory [CC ] {
310
303
import SeqFactory .UnapplySeqWrapper
311
304
final def unapplySeq [A ](x : CC [A ] @ uncheckedVariance): UnapplySeqWrapper [A ] = new UnapplySeqWrapper (x) // TODO is uncheckedVariance sound here?
312
- def from [A ](source : IterableOnce [A ]^ ): CC [A ]
313
- override def apply [A ](elems : A * ): CC [A ] = from(elems)
314
305
}
315
306
316
307
object SeqFactory {
You can’t perform that action at this time.
0 commit comments