summaryrefslogtreecommitdiff
path: root/src/library
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-02-05 18:33:09 +0000
committerPaul Phillips <paulp@improving.org>2010-02-05 18:33:09 +0000
commit1e2906153685e805163390bd921ee042e55ba587 (patch)
treea375b1c25962501b59b161e9f5f7ed653302711f /src/library
parentf203f3adfd63936ccfa71d61608e95f05ae800b0 (diff)
downloadscala-1e2906153685e805163390bd921ee042e55ba587.tar.gz
scala-1e2906153685e805163390bd921ee042e55ba587.tar.bz2
scala-1e2906153685e805163390bd921ee042e55ba587.zip
Discovered that List's deprecated removeDuplica...
Discovered that List's deprecated removeDuplicates didn't survive the renaming of unique to distinct. No review.
Diffstat (limited to 'src/library')
-rw-r--r--src/library/scala/collection/immutable/List.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/library/scala/collection/immutable/List.scala b/src/library/scala/collection/immutable/List.scala
index 415a31a02e..70b0649264 100644
--- a/src/library/scala/collection/immutable/List.scala
+++ b/src/library/scala/collection/immutable/List.scala
@@ -288,6 +288,9 @@ sealed abstract class List[+A] extends LinearSeq[A]
b.toList
}
+ @deprecated("use `distinct' instead")
+ def removeDuplicates: List[A] = distinct
+
/** <p>
* Sort the list according to the comparison function
* `lt(e1: a, e2: a) =&gt; Boolean`,