Skip to content

Commit 4464a73

Browse files
committed
Drop override in SeqFactory
Another method that was added for the typesafety demonstration, which should be removed now.
1 parent 1ef2574 commit 4464a73

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

scala2-library-cc/src/scala/collection/Factory.scala

-9
Original file line numberDiff line numberDiff line change
@@ -296,21 +296,12 @@ object IterableFactory {
296296
}
297297
}
298298

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-
306299
/**
307300
* @tparam CC Collection type constructor (e.g. `List`)
308301
*/
309302
trait SeqFactory[+CC[A] <: SeqOps[A, Seq, Seq[A]]] extends IterableFactory[CC] {
310303
import SeqFactory.UnapplySeqWrapper
311304
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)
314305
}
315306

316307
object SeqFactory {

0 commit comments

Comments
 (0)