summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJanek Bogucki <janekdb@gmail.com>2016-03-22 13:47:40 +0000
committerJanek Bogucki <janekdb@gmail.com>2016-03-26 20:51:01 +0000
commitb6c3be63c3274a09579b1b4391deaa4f0f3c05e7 (patch)
tree8ff119696aeb5ae60e92908ed030fb90d89e5ab9 /src
parent0e4c39aee4196573e8fb94a01fd92e0be4e4dd05 (diff)
downloadscala-b6c3be63c3274a09579b1b4391deaa4f0f3c05e7.tar.gz
scala-b6c3be63c3274a09579b1b4391deaa4f0f3c05e7.tar.bz2
scala-b6c3be63c3274a09579b1b4391deaa4f0f3c05e7.zip
Remove deprecated Predef.error
error was deprecated in 2.9.0 but remained to ensure compatibility with sbt. This changes follows on from an update to the latest sbt version (0.13.11).
Diffstat (limited to 'src')
-rw-r--r--src/library/scala/Predef.scala8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/library/scala/Predef.scala b/src/library/scala/Predef.scala
index 2f6d6511b2..58d43f8666 100644
--- a/src/library/scala/Predef.scala
+++ b/src/library/scala/Predef.scala
@@ -188,13 +188,7 @@ object Predef extends LowPriorityImplicits with DeprecatedPredef {
/** @group utilities */
@inline def locally[T](x: T): T = x // to communicate intent and avoid unmoored statements
- // errors and asserts -------------------------------------------------
-
- // !!! Remove this when possible - ideally for 2.11.
- // We are stuck with it a while longer because sbt's compiler interface
- // still calls it as of 0.12.2.
- @deprecated("Use `sys.error(message)` instead", "2.9.0")
- def error(message: String): Nothing = sys.error(message)
+ // assertions ---------------------------------------------------------
/** Tests an expression, throwing an `AssertionError` if false.
* Calls to this method will not be generated if `-Xelide-below`