@@ -3205,7 +3205,7 @@ extends Message(UnusedSymbolID) {
3205
3205
}
3206
3206
3207
3207
object UnusedSymbol {
3208
- private def removeLocalDefAction (treePos : SourcePosition )(using Context ): List [CodeAction ] = {
3208
+ private def removeDefinitionAtPos (treePos : SourcePosition )(using Context ): List [CodeAction ] = {
3209
3209
val source = treePos.source
3210
3210
val sourcePos = treePos.sourcePos
3211
3211
val endLine = source.offsetToLine(sourcePos.end - 1 )
@@ -3226,9 +3226,9 @@ object UnusedSymbol {
3226
3226
)
3227
3227
}
3228
3228
def imports (treePos : SourcePosition )(using Context ): UnusedSymbol = new UnusedSymbol (treePos, i " unused import " , List .empty)
3229
- def localDefs (treePos : SourcePosition )(using Context ): UnusedSymbol = new UnusedSymbol (treePos, i " unused local definition " , removeLocalDefAction (treePos))
3229
+ def localDefs (treePos : SourcePosition )(using Context ): UnusedSymbol = new UnusedSymbol (treePos, i " unused local definition " , removeDefinitionAtPos (treePos))
3230
3230
def explicitParams (treePos : SourcePosition )(using Context ): UnusedSymbol = new UnusedSymbol (treePos, i " unused explicit parameter " , List .empty)
3231
3231
def implicitParams (treePos : SourcePosition )(using Context ): UnusedSymbol = new UnusedSymbol (treePos, i " unused implicit parameter " , List .empty)
3232
- def privateMembers (treePos : SourcePosition )(using Context ): UnusedSymbol = new UnusedSymbol (treePos, i " unused private member " , List .empty )
3232
+ def privateMembers (treePos : SourcePosition )(using Context ): UnusedSymbol = new UnusedSymbol (treePos, i " unused private member " , removeDefinitionAtPos(treePos) )
3233
3233
def patVars (treePos : SourcePosition )(using Context ): UnusedSymbol = new UnusedSymbol (treePos, i " unused pattern variable " , List .empty)
3234
3234
}
0 commit comments