summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2009-08-28 12:16:28 +0000
committerPaul Phillips <paulp@improving.org>2009-08-28 12:16:28 +0000
commitce362ef76f84ff1198e0e99d08f82b788d24ddf1 (patch)
tree47cc33e442e180a96e80dfa8879178b3b100066b
parent8814de2aa0fc14df0785dfa9ee96d154c32e5646 (diff)
downloadscala-ce362ef76f84ff1198e0e99d08f82b788d24ddf1.tar.gz
scala-ce362ef76f84ff1198e0e99d08f82b788d24ddf1.tar.bz2
scala-ce362ef76f84ff1198e0e99d08f82b788d24ddf1.zip
Removed some code which has been commented out ...
Removed some code which has been commented out since Apr 8 2004. I say 5.5 years is long enough to warrant a fresh start.
-rw-r--r--src/library/scala/collection/immutable/List.scala19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/library/scala/collection/immutable/List.scala b/src/library/scala/collection/immutable/List.scala
index e6e7942cb8..abd8e31dc3 100644
--- a/src/library/scala/collection/immutable/List.scala
+++ b/src/library/scala/collection/immutable/List.scala
@@ -843,25 +843,6 @@ object List extends SequenceFactory[List] {
}
buf.toList
}
-
- /** Lists with ordered elements are ordered
- implicit def list2ordered[a <% Ordered[a]](x: List[a]): Ordered[List[a]] = new Ordered[List[a]] {
- def compare [b >: List[a] <% Ordered[b]](y: b): Int = y match {
- case y1: List[a] => compareLists(x, y1);
- case _ => -(y compare x)
- }
- private def compareLists(xs: List[a], ys: List[a]): Int = {
- if (xs.isEmpty && ys.isEmpty) 0
- else if (xs.isEmpty) -1
- else if (ys.isEmpty) 1
- else {
- val s = xs.head compare ys.head;
- if (s != 0) s
- else compareLists(xs.tail, ys.tail)
- }
- }
- }
- */
}
/** Only used for list serialization */