Skip to content

Commit 0f05f66

Browse files
committed
Remove deprecations
1 parent 5326b7b commit 0f05f66

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

library/src-bootstrapped/scala/quoted/Expr.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ abstract class Expr[+T] private[scala] {
4141
!scala.internal.quoted.Expr.unapply[EmptyTuple, EmptyTuple](this)(using that, false, qctx).isEmpty
4242

4343
/** Checked cast to a `quoted.Expr[U]` */
44-
@deprecated("Replaced with `asExprOf`", "0.27.0")
4544
def cast[U](using tp: scala.quoted.Type[U])(using qctx: QuoteContext): scala.quoted.Expr[U] = asExprOf[U]
4645

4746
/** Convert to an `quoted.Expr[X]` if this expression is a valid expression of type `X` or throws */
@@ -59,7 +58,6 @@ abstract class Expr[+T] private[scala] {
5958
}
6059

6160
/** View this expression `quoted.Expr[T]` as a `Term` */
62-
@deprecated("Replaced with `asTerm`", "0.27.0")
6361
def unseal(using qctx: QuoteContext): qctx.tasty.Term = asTerm
6462

6563
/** View this expression `quoted.Expr[T]` as a `Term` */

library/src-bootstrapped/scala/quoted/Type.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ abstract class Type[X <: AnyKind] private[scala] {
1616
this.asTypeTree.showWith(syntaxHighlight)
1717

1818
/** View this expression `quoted.Type[T]` as a `TypeTree` */
19-
@deprecated("Replaced with `asExprOf`", "0.27.0")
2019
def unseal(using qctx: QuoteContext): qctx.tasty.TypeTree = asTypeTree
2120

2221
/** View this expression `quoted.Type[T]` as a `qctx.tasty.TypeTree` */

library/src/scala/tasty/Reflection.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -675,14 +675,12 @@ class Reflection(private[scala] val internal: CompilerInterface) { self =>
675675
extension (self: Term):
676676

677677
/** Convert `Term` to an `quoted.Expr[Any]` if the term is a valid expression or throws */
678-
@deprecated("Replaced with `asExpr` (or `asExprOf`)", "0.27.0")
679678
def seal(using ctx: Context): scala.quoted.Expr[Any] =
680679
sealOpt.getOrElse {
681680
throw new Exception("Cannot seal a partially applied Term. Try eta-expanding the term first.")
682681
}
683682

684683
/** Convert `Term` to an `quoted.Expr[Any]` if the term is a valid expression */
685-
@deprecated("Replaced with `isExpr` and `asExpr` (or `asExprOf`)", "0.27.0")
686684
def sealOpt(using ctx: Context): Option[scala.quoted.Expr[Any]] =
687685
self.tpe.widen match
688686
case _: MethodType | _: PolyType => None
@@ -1788,7 +1786,6 @@ class Reflection(private[scala] val internal: CompilerInterface) { self =>
17881786
extension (self: Type):
17891787

17901788
/** Convert `Type` to an `quoted.Type[_]` */
1791-
@deprecated("Replaced with `asQuotedType`", "0.27.0")
17921789
def seal(using ctx: Context): scala.quoted.Type[_] =
17931790
new scala.internal.quoted.Type(Inferred(self), internal.compilerId)
17941791

0 commit comments

Comments
 (0)