Skip to content

Commit 5233f9d

Browse files
sjrdWojciechMazur
authored andcommitted
Remove dead code newCtx in CheckUnused.
[Cherry-picked 3188177]
1 parent 08b2156 commit 5233f9d

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
@@ -207,9 +207,6 @@ class CheckUnused private (phaseMode: CheckUnused.PhaseMode, suffix: String, _ke
207207
}
208208
ctx
209209

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

0 commit comments

Comments
 (0)