diff options
author | Matthias Zenger <mzenger@gmail.com> | 2003-06-10 12:09:52 +0000 |
---|---|---|
committer | Matthias Zenger <mzenger@gmail.com> | 2003-06-10 12:09:52 +0000 |
commit | 34cdd069a106b0889594f3c784e39b1ce1d8f3af (patch) | |
tree | f1b321e47ea085ce00835b5b49dfec14345da084 /sources | |
parent | a55f14b464e6738545ac954ba4e8bc86a217acf9 (diff) | |
download | scala-34cdd069a106b0889594f3c784e39b1ce1d8f3af.tar.gz scala-34cdd069a106b0889594f3c784e39b1ce1d8f3af.tar.bz2 scala-34cdd069a106b0889594f3c784e39b1ce1d8f3af.zip |
Removed some functionality.
Diffstat (limited to 'sources')
-rw-r--r-- | sources/scala/ListBuffer.scala | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sources/scala/ListBuffer.scala b/sources/scala/ListBuffer.scala index f861df0606..d07fc5c9b4 100644 --- a/sources/scala/ListBuffer.scala +++ b/sources/scala/ListBuffer.scala @@ -9,14 +9,16 @@ package scala; +/** This class is still quite messy, because I wanted to implement + * Map. I will soon clean it up and probably remove some of the + * functionality. -- Matthias + */ class ListBuffer[A] with Seq[A] with PartialFunction[Int, A] { protected var first: LinkedList[A] = null; protected var last: LinkedList[A] = null; protected var len: Int = 0; - def size: Int = len; - def length: Int = len; def isDefinedAt(n: Int) = (n >= 0) && (n < len); @@ -113,7 +115,7 @@ class ListBuffer[A] with Seq[A] with PartialFunction[Int, A] { def prependSeq(iter: Iterable[A]) = prependIterator(iter.elements); - protected def prependIterator(iter: Iterator[A]): Unit = if (iter.hasNext) { + private def prependIterator(iter: Iterator[A]): Unit = if (iter.hasNext) { val cur = iter.next; prependIterator(iter); prepend(cur); |