summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstenman <stenman@epfl.ch>2003-07-09 15:14:41 +0000
committerstenman <stenman@epfl.ch>2003-07-09 15:14:41 +0000
commit4bcea1cf5c91eb9cfff943733aacaf54b7dfdeed (patch)
tree1dd4be8d9e75404ac552a70bb210e0571cf2b851
parent32d99afd507e62dd1047e93d0727e756b640c61b (diff)
downloadscala-4bcea1cf5c91eb9cfff943733aacaf54b7dfdeed.tar.gz
scala-4bcea1cf5c91eb9cfff943733aacaf54b7dfdeed.tar.bz2
scala-4bcea1cf5c91eb9cfff943733aacaf54b7dfdeed.zip
Deleted deprecated at()
-rw-r--r--sources/scala/List.scala2
-rw-r--r--sources/scala/Seq.scala4
-rw-r--r--sources/scala/Stream.scala1
-rw-r--r--sources/scala/collection/immutable/Queue.scala5
4 files changed, 0 insertions, 12 deletions
diff --git a/sources/scala/List.scala b/sources/scala/List.scala
index 162a0c5974..95fc2f0699 100644
--- a/sources/scala/List.scala
+++ b/sources/scala/List.scala
@@ -132,8 +132,6 @@ trait List[+a] extends Seq[a] {
*/
def apply(n: Int): a = drop(n).head;
- def at(n: Int): a = drop(n).head;
-
/** Returns the list resulting from applying the given function <code>f</code> to each
* element of this list.
* @param f function to apply to each element.
diff --git a/sources/scala/Seq.scala b/sources/scala/Seq.scala
index aab75417f5..da25a1307e 100644
--- a/sources/scala/Seq.scala
+++ b/sources/scala/Seq.scala
@@ -11,8 +11,4 @@ package scala;
trait Seq[+A] with Function1[Int, A] with Iterable[A] {
def length: Int;
-
- /** @deprecated
- */
- //def at(index: Int): A;
}
diff --git a/sources/scala/Stream.scala b/sources/scala/Stream.scala
index 7be860553b..586851be0f 100644
--- a/sources/scala/Stream.scala
+++ b/sources/scala/Stream.scala
@@ -37,7 +37,6 @@ trait Stream[+a] extends Seq[a] {
else tail.drop(n-1);
def apply(n: int) = drop(n).head;
- def at(n: int) = drop(n).head;
def takeWhile(p: a => Boolean): Stream[a] =
if (isEmpty || !p(head)) Stream.empty
diff --git a/sources/scala/collection/immutable/Queue.scala b/sources/scala/collection/immutable/Queue.scala
index 59b489ff90..1df8b73251 100644
--- a/sources/scala/collection/immutable/Queue.scala
+++ b/sources/scala/collection/immutable/Queue.scala
@@ -21,11 +21,6 @@ object Queue {
}
class Queue[+A](in:List[A],out:List[A]) extends Seq[A] {
-
- def at(n: Int): A =
- if (n < out.length) out.at(n)
- else (in.reverse).at(n - out.length);
-
/** Returns the <code>n</code>-th element of this queue.
* The first element is at position 0.
* @param n index of the element to return