From 697990713a431a28628bb2217a659c15ad0e4010 Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Wed, 24 Jul 2019 14:45:28 +0200 Subject: [PATCH] Remove QuoteError --- .../scala/quoted/QuoteError.scala | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 library/src-non-bootstrapped/scala/quoted/QuoteError.scala diff --git a/library/src-non-bootstrapped/scala/quoted/QuoteError.scala b/library/src-non-bootstrapped/scala/quoted/QuoteError.scala deleted file mode 100644 index 1091d3f44429..000000000000 --- a/library/src-non-bootstrapped/scala/quoted/QuoteError.scala +++ /dev/null @@ -1,16 +0,0 @@ -package scala.quoted - -/** Throwing this error in the implementation of a macro - * will result in a compilation error with the given message. - */ -@deprecated("", "0.17") -class QuoteError(message: String, val from: Option[Expr[_]]) extends Throwable(message) - -@deprecated("", "0.17") -object QuoteError { - /** Throws a QuoteError with the given message */ - def apply(message: => String): Nothing = throw new QuoteError(message, None) - - /** Throws a QuoteError with the given message at the position of the `from` expression */ - def apply(message: => String, from: Expr[_]): Nothing = throw new QuoteError(message, Some(from)) -}