Skip to content

Commit 021e7c4

Browse files
committed
Remove unneeded special case in ANF transform.
Obsolete now that we carry all the types around.
1 parent 52c087e commit 021e7c4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/main/scala/scala/async/internal/AnfTransform.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,9 @@ private[async] trait AnfTransform {
176176
// we an assume that no await call appears in a by-name argument position,
177177
// this has already been checked.
178178
val funStats :+ simpleFun = linearize.transformToList(fun)
179-
def isAwaitRef(name: Name) = name.toString.startsWith(AnfTransform.this.name.await + "$")
180179
val (argStatss, argExprss): (List[List[List[Tree]]], List[List[Tree]]) =
181180
mapArgumentss[List[Tree]](fun, argss) {
182181
case Arg(expr, byName, _) if byName /*|| isPure(expr) TODO */ => (Nil, expr)
183-
case Arg(expr@Ident(name), _, _) if isAwaitRef(name) => (Nil, expr) // TODO needed? // not typed, so it eludes the check in `isSafeToInline`
184182
case Arg(expr, _, argName) =>
185183
linearize.transformToList(expr) match {
186184
case stats :+ expr1 =>

0 commit comments

Comments
 (0)