summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authorMatthias Zenger <mzenger@gmail.com>2003-07-09 15:16:25 +0000
committerMatthias Zenger <mzenger@gmail.com>2003-07-09 15:16:25 +0000
commit209dd1ab443385ffd71b9ecb5d31f3981e6541be (patch)
treed6d063845eed4486041f05c8cac80e86115fe52e /sources
parent4bcea1cf5c91eb9cfff943733aacaf54b7dfdeed (diff)
downloadscala-209dd1ab443385ffd71b9ecb5d31f3981e6541be.tar.gz
scala-209dd1ab443385ffd71b9ecb5d31f3981e6541be.tar.bz2
scala-209dd1ab443385ffd71b9ecb5d31f3981e6541be.zip
Removed function at (was deprecated).
Diffstat (limited to 'sources')
-rw-r--r--sources/scala/collection/mutable/MutableList.scala2
-rw-r--r--sources/scala/collection/mutable/SingleLinkedList.scala2
2 files changed, 0 insertions, 4 deletions
diff --git a/sources/scala/collection/mutable/MutableList.scala b/sources/scala/collection/mutable/MutableList.scala
index 5e9b3d917d..4c4333a1cb 100644
--- a/sources/scala/collection/mutable/MutableList.scala
+++ b/sources/scala/collection/mutable/MutableList.scala
@@ -34,8 +34,6 @@ class MutableList[A] with Seq[A] with PartialFunction[Int, A] {
def get(n: Int): Option[A] = first.get(n);
- def at(n: Int): A = apply(n);
-
protected def prependElem(elem: A): Unit = {
first = new LinkedList[A](elem, first);
if (len == 0)
diff --git a/sources/scala/collection/mutable/SingleLinkedList.scala b/sources/scala/collection/mutable/SingleLinkedList.scala
index c7926a28e4..1f0ee45bae 100644
--- a/sources/scala/collection/mutable/SingleLinkedList.scala
+++ b/sources/scala/collection/mutable/SingleLinkedList.scala
@@ -40,8 +40,6 @@ abstract class SingleLinkedList[A, This <: SingleLinkedList[A, This]]: This with
else next.apply(n - 1);
}
- def at(n: Int): A = apply(n);
-
def get(n: Int): Option[A] = {
if (n == 0) Some(elem)
else if (next == null) None