diff options
author | Adriaan Moors <adriaan.moors@epfl.ch> | 2009-10-22 09:43:14 +0000 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@epfl.ch> | 2009-10-22 09:43:14 +0000 |
commit | 907fd78c9bda27b429aaf7d555731c027d6d1cbb (patch) | |
tree | 83187416c39130e84ecdb6cb45d0b11373e9ebc1 /src/library/scala/collection/immutable/List.scala | |
parent | 3bd3ae75dae560a307c818515d79a0a4ebe67d41 (diff) | |
download | scala-907fd78c9bda27b429aaf7d555731c027d6d1cbb.tar.gz scala-907fd78c9bda27b429aaf7d555731c027d6d1cbb.tar.bz2 scala-907fd78c9bda27b429aaf7d555731c027d6d1cbb.zip |
removed some of the code duplication that Marti...
removed some of the code duplication that Martin pointed out in my addition of def apply() to GenericCanBuildFrom
Diffstat (limited to 'src/library/scala/collection/immutable/List.scala')
-rw-r--r-- | src/library/scala/collection/immutable/List.scala | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/library/scala/collection/immutable/List.scala b/src/library/scala/collection/immutable/List.scala index de6da65f81..59a5bfdf3a 100644 --- a/src/library/scala/collection/immutable/List.scala +++ b/src/library/scala/collection/immutable/List.scala @@ -502,11 +502,7 @@ object List extends SeqFactory[List] { import scala.collection.{Iterable, Seq, IndexedSeq} - implicit def canBuildFrom[A]: CanBuildFrom[Coll, A, List[A]] = - new GenericCanBuildFrom[A] { - def apply() = newBuilder[A] - } - + implicit def canBuildFrom[A]: CanBuildFrom[Coll, A, List[A]] = new GenericCanBuildFrom[A] def newBuilder[A]: Builder[A, List[A]] = new ListBuffer[A] override def empty[A]: List[A] = Nil |