Skip to content

Commit 3188177

Browse files
committed
Remove dead code newCtx in CheckUnused.
1 parent 6d79caa commit 3188177

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

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

-3
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)