Skip to content

S1481: Unused local variables should be removed#3654

Merged
hazendaz merged 1 commit intospotbugs:masterfrom
Pankraz76:apply-RemoveUnusedLocalVariables
Aug 29, 2025
Merged

S1481: Unused local variables should be removed#3654
hazendaz merged 1 commit intospotbugs:masterfrom
Pankraz76:apply-RemoveUnusedLocalVariables

Conversation

@Pankraz76
Copy link
Copy Markdown

@Pankraz76 Pankraz76 commented Aug 28, 2025

Make sure these boxes are checked before submitting your PR -- thank you!

@hazendaz
Copy link
Copy Markdown
Member

while unused, I think there was a debugging purpose to this but those authors are long gone I believe. Will leave to others to decide if to remove. I've seen these but left them since they are doing calculations and I could see during debug that might be useful.

@hazendaz
Copy link
Copy Markdown
Member

@JuditKnoll @gtoison Do either of you care to keep the calculations or ok with their removal? Will leave that up to you two to decide, maybe these just needed logging added so they actually do something ;)

@JuditKnoll
Copy link
Copy Markdown
Collaborator

@JuditKnoll @gtoison Do either of you care to keep the calculations or ok with their removal? Will leave that up to you two to decide, maybe these just needed logging added so they actually do something ;)

I'm ok with their removal. The code changes look okay to me (not even in commented out code are those fields referenced), the changelog entry could be improved (left a comment there).

Comment thread CHANGELOG.md Outdated
@Pankraz76

This comment was marked as spam.

Comment thread CHANGELOG.md Outdated
@hazendaz hazendaz merged commit c96d1ad into spotbugs:master Aug 29, 2025
15 checks passed
@Pankraz76

This comment was marked as spam.

@hazendaz hazendaz added this to the Spotbugs 4.9.5 milestone Aug 30, 2025
@hazendaz hazendaz self-assigned this Aug 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants