summaryrefslogtreecommitdiff
path: root/src/library/scalax/collection/SizedIterable.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/library/scalax/collection/SizedIterable.scala')
-rw-r--r--src/library/scalax/collection/SizedIterable.scala38
1 files changed, 0 insertions, 38 deletions
diff --git a/src/library/scalax/collection/SizedIterable.scala b/src/library/scalax/collection/SizedIterable.scala
deleted file mode 100644
index 4463c268b9..0000000000
--- a/src/library/scalax/collection/SizedIterable.scala
+++ /dev/null
@@ -1,38 +0,0 @@
-/* __ *\
-** ________ ___ / / ___ Scala API **
-** / __/ __// _ | / / / _ | (c) 2002-2009, LAMP/EPFL **
-** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
-** /____/\___/_/ |_/____/_/ | | **
-** |/ **
-\* */
-
-// $Id: Collection.scala 12340 2007-07-17 15:29:47Z mcdirmid $
-
-
-package scalax.collection
-
-/** Variant of <code>Iterable</code> which also demands
- * implementation of a `size` method.
- * Basically, this trait just adds size to Iterable,
- * and provides an optimized implementation of toArray based on it.
- *
- * @author Martin Odersky
- * @version 2.8
- */
-trait SizedIterable[+A] extends Iterable[A] {
-
- /** Returns the number of elements in this collection.
- *
- * @return number of collection elements.
- */
- def size : Int
-
- /** Converts this iterable to a fresh Array with <code>size</code> elements.
- */
- override def toArray[B >: A]: Array[B] = {
- val result = new Array[B](size)
- copyToArray(result, 0)
- result
- }
-}
-