diff options
Diffstat (limited to 'src/library/scalax/collection/generic/covariant/IterableTemplate.scala')
-rwxr-xr-x | src/library/scalax/collection/generic/covariant/IterableTemplate.scala | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/src/library/scalax/collection/generic/covariant/IterableTemplate.scala b/src/library/scalax/collection/generic/covariant/IterableTemplate.scala deleted file mode 100755 index 715f88cd8e..0000000000 --- a/src/library/scalax/collection/generic/covariant/IterableTemplate.scala +++ /dev/null @@ -1,39 +0,0 @@ -/* __ *\ -** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2003-2009, LAMP/EPFL ** -** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** -** /____/\___/_/ |_/____/_/ | | ** -** |/ ** -\* */ - -// $Id: Iterable.scala 15188 2008-05-24 15:01:02Z stepancheg $ - - -package scalax.collection.generic.covariant - -import annotation.unchecked.uncheckedVariance - -/** Collection classes mixing in this class provide a method - * <code>elements</code> which returns an iterator over all the - * elements contained in the collection. - * - * @note If a collection has a known <code>size</code>, it should also sub-type <code>Collection</code>. - * Only potentially unbounded collections should directly sub-class <code>Iterable</code>. - * @author Matthias Zenger - * @version 1.1, 04/02/2004 - */ -trait IterableTemplate[+CC[+B] <: IterableTemplate[CC, B] with Iterable[B], +A] - extends generic.IterableTemplate[CC, A @uncheckedVariance] { self /*: CC[A]*/ => - -/* can't have a covariant view here, because mutable.Vector would - override it - override def view: IterableView[CC, A] = new IterableView[CC, A] { - val origin = thisCC - val elements: Iterator[A] = self.elements - } -*/ -} - - -// !!! todo: explain why @uncheckedVariance is justified here. - |