Skip to content

Commit 7c83701

Browse files
committed
Drop redundant code
1 parent e2d0659 commit 7c83701

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

compiler/src/dotty/tools/dotc/transform/LetOverApply.scala

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,9 @@ package dotc
33
package transform
44

55
import core._
6+
import Contexts.Context, Symbols._, Decorators._
67
import MegaPhase._
7-
import Contexts.Context
8-
import Symbols._, Decorators._, Types._
98
import ast.Trees._
10-
import dotty.tools.dotc.ast.tpd
11-
12-
13-
import scala.collection.immutable.::
14-
159

1610
/** Rewrite `{ stats; expr}.f(args) }` to `{ stats; expr.f(args) }` before
1711
* proceeding, but leave closures alone. This is necessary to be able to
@@ -22,7 +16,7 @@ class LetOverApply extends MiniPhase:
2216

2317
override def phaseName: String = "letOverApply"
2418

25-
override def transformApply(tree: tpd.Apply)(using Context): tpd.Tree =
19+
override def transformApply(tree: Apply)(using Context): Tree =
2620
tree.fun match
2721
case Select(blk @ Block(stats, expr), name) if !expr.isInstanceOf[Closure] =>
2822
cpy.Block(blk)(stats,

0 commit comments

Comments
 (0)