Skip to content

Commit 58f20ad

Browse files
committed
Remove unnecessarry logic
1 parent 6052f20 commit 58f20ad

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

compiler/src/scala/quoted/runtime/impl/QuoteMatcher.scala

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -503,11 +503,7 @@ object QuoteMatcher {
503503
case MatchResult.ClosedTree(tree) =>
504504
new ExprImpl(tree, spliceScope)
505505
case MatchResult.OpenTree(tree, patternTpe, argIds, argTypes, env) =>
506-
val names: List[TermName] = argIds.map {
507-
// TODO 17105: Do we need this case?
508-
case Block(List(DefDef(nme.ANON_FUN, _, _, Apply(Ident(name), _))), _) => name.asTermName
509-
case arg => arg.symbol.name.asTermName
510-
}
506+
val names: List[TermName] = argIds.map(_.symbol.name.asTermName)
511507
val paramTypes = argTypes.map(tpe => mapTypeHoles(tpe.widenTermRefExpr))
512508
val methTpe = MethodType(names)(_ => paramTypes, _ => mapTypeHoles(patternTpe))
513509
val meth = newAnonFun(ctx.owner, methTpe)

0 commit comments

Comments
 (0)