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 4 commits into from Jun 13, 2016


Copy link

@joshuaclayton joshuaclayton commented Jun 10, 2016

Hi all!

I've been fascinated by identifying and removing dead code and unreachable code, so I built a tool called "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
The majority of code using Version.with_deps revolved around Redis,
which was removed in 9207533.

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

dwradcliffe commented Jun 13, 2016


Another quick look @qrush or @arthurnn?

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

arthurnn commented Jun 13, 2016


@rubygems-deployer rubygems-deployer temporarily deployed to staging Jun 13, 2016 Inactive
Copy link

qrush commented Jun 13, 2016

👍 🔪

@dwradcliffe dwradcliffe temporarily deployed to production Jun 14, 2016 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
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

5 participants