Skip to content

Commit faa55ee

Browse files
Merge pull request #10675 from dotty-staging/remove-Expr.StringContext.unapply
Remove `Expr.StringContext.unapply`
2 parents e1166a0 + 26abf4c commit faa55ee

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -236,15 +236,4 @@ object Expr {
236236
}
237237
}
238238

239-
object StringContext {
240-
/** Matches a `StringContext(part0, part1, ...)` and extracts the parts of a call to if the
241-
* parts are passed explicitly. Returns the equvalent to `Seq('{part0}, '{part1}, ...)`.
242-
*/
243-
def unapply(sc: Expr[StringContext])(using Quotes): Option[Seq[Expr[String]]] =
244-
sc match
245-
case '{ scala.StringContext(${Varargs(parts)}: _*) } => Some(parts)
246-
case '{ new scala.StringContext(${Varargs(parts)}: _*) } => Some(parts)
247-
case _ => None
248-
}
249-
250239
}

0 commit comments

Comments
 (0)