Skip to content

Commit 43f98b7

Browse files
committed
Remove dead code newCtx in CheckUnused.
1 parent 3022ded commit 43f98b7

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,6 @@ class CheckUnused private (phaseMode: CheckUnused.PhaseMode, suffix: String, _ke
206206
}
207207
ctx
208208

209-
private def newCtx(tree: tpd.Tree)(using Context) =
210-
if tree.symbol.exists then ctx.withOwner(tree.symbol) else ctx
211-
212209
/**
213210
* This traverse is the **main** component of this phase
214211
*

0 commit comments

Comments
 (0)