Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deadcode #3086

Merged
merged 6 commits into from
Jul 26, 2024
Merged

Remove deadcode #3086

merged 6 commits into from
Jul 26, 2024

Conversation

dhrubabasu
Copy link
Contributor

Why this should be merged

s/o @darioush for pointing out this tool

go install golang.org/x/tools/cmd/deadcode@latest
deadcode -test ./...

How this works

Removes some deadcode. There may be more from that tool but these are the ones I feel comfortable with removing.

How this was tested

CI

@dhrubabasu dhrubabasu added the cleanup Code quality improvement label Jun 5, 2024
@dhrubabasu dhrubabasu added this to the v1.11.8 milestone Jun 5, 2024
@dhrubabasu dhrubabasu self-assigned this Jun 5, 2024
@StephenButtolph StephenButtolph modified the milestones: v1.11.8, v1.11.9 Jun 12, 2024
@StephenButtolph StephenButtolph modified the milestones: v1.11.9, v1.11.10 Jul 1, 2024
Copy link
Contributor

@marun marun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a new deadcode linter?

@dhrubabasu
Copy link
Contributor Author

dhrubabasu commented Jul 23, 2024

Maybe add a new deadcode linter?

There's a decent amount of false positives, this wouldn't really belong in CI IMO

fwiw we already have unused in CI: https://golangci-lint.run/usage/linters/#unused

@StephenButtolph StephenButtolph modified the milestones: v1.11.10, v1.11.11 Jul 25, 2024
@StephenButtolph StephenButtolph added this pull request to the merge queue Jul 26, 2024
Merged via the queue into master with commit 5804bad Jul 26, 2024
20 checks passed
@StephenButtolph StephenButtolph deleted the deadcode-tool branch July 26, 2024 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Code quality improvement
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

4 participants