diff options
author | Paul Phillips <paulp@improving.org> | 2011-08-15 20:48:25 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-08-15 20:48:25 +0000 |
commit | 20859263f2a2cf85464b333b9842bb31c020ee5e (patch) | |
tree | 8a315ae89a7a3bf1093dd4c62dffa7c188c785fc /src/library/scala/Either.scala | |
parent | e43daf434becf4497acb4d297ab6d2866c16d1aa (diff) | |
download | scala-20859263f2a2cf85464b333b9842bb31c020ee5e.tar.gz scala-20859263f2a2cf85464b333b9842bb31c020ee5e.tar.bz2 scala-20859263f2a2cf85464b333b9842bb31c020ee5e.zip |
Removing the code which has been deprecated sin...
Removing the code which has been deprecated since 2.8.0. Contributed by
Simon Ochsenreither, although deleting code is such fun one hesitates to
call it a contribution. Still, we will. Closes SI-4860, no review.
Diffstat (limited to 'src/library/scala/Either.scala')
-rw-r--r-- | src/library/scala/Either.scala | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/library/scala/Either.scala b/src/library/scala/Either.scala index e0f840a609..21d4d5c855 100644 --- a/src/library/scala/Either.scala +++ b/src/library/scala/Either.scala @@ -310,24 +310,6 @@ object Either { } } - @deprecated("use `x.joinLeft'", "2.8.0") - def joinLeft[A, B](es: Either[Either[A, B], B]) = - es.left.flatMap(x => x) - - @deprecated("use `x.joinRight'", "2.8.0") - def joinRight[A, B](es: Either[A, Either[A, B]]) = - es.right.flatMap(x => x) - - /** - * Takes an `Either` to its contained value within `Left` or - * `Right`. - */ - @deprecated("use `x.merge'", "2.8.0") - def merge[T](e: Either[T, T]) = e match { - case Left(t) => t - case Right(t) => t - } - /** If the condition satisfies, return the given `A` in `Left`, * otherwise, return the given `B` in `Right`. */ |