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 unreachable code #1319

Merged
merged 4 commits into from
Jun 13, 2016
Merged

Remove unreachable code #1319

merged 4 commits into from
Jun 13, 2016

Conversation

joshuaclayton
Copy link
Contributor

Hi all!

I've been fascinated by identifying and removing dead code and unreachable code, so I built a tool called "unused" (https://github.com/joshuaclayton/unused) and ran it on the codebase.

This is a PR removing discrete chunks of unreachable code, with context in each commit around when the surrounding code using it was changed.

Methods regarding Redis were removed in
9207533; however, Rubygem.versions_key
was not.
The code surrounding Version#to_index usage was in
232dcf6.
The majority of code using Version.with_deps revolved around Redis,
which was removed in 9207533.
…_when

All tests using this method switched to an alternate way to assert
correct behavior in b235aeb.
@dwradcliffe
Copy link
Member

LGTM

Another quick look @qrush or @arthurnn?

@arthurnn arthurnn merged commit 8ca370b into rubygems:master Jun 13, 2016
@arthurnn
Copy link
Member

thanks

@rubygems-deployer rubygems-deployer temporarily deployed to staging June 13, 2016 14:26 Inactive
@qrush
Copy link
Member

qrush commented Jun 13, 2016

👍 🔪

@dwradcliffe dwradcliffe temporarily deployed to production June 14, 2016 12:55 Inactive
@tg-z tg-z mentioned this pull request Nov 20, 2019
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.

5 participants