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 unused code #4072

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Remove unused code #4072

wants to merge 1 commit into from

Conversation

sethboyles
Copy link
Member

I was trying out this gem debride, which attempts to identify unused code in Ruby.

Due to the dynamic and meta-programmatic nature of Ruby/CCNG, there were a lot of false positives, and these were a few that I believe can safely be removed.

  • I have reviewed the contributing guide

  • I have viewed, signed, and submitted the Contributor License Agreement

  • I have made this pull request to the main branch

  • I have run all the unit tests using bundle exec rake

  • I have run CF Acceptance Tests

@sethboyles sethboyles marked this pull request as ready for review November 4, 2024 23:48
@@ -17,7 +17,7 @@

module VCAP::CloudController
class Runner
attr_reader :config, :config_file, :insert_seed_data, :secrets_file
Copy link
Member

Choose a reason for hiding this comment

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

Is it possible that this is used by a rake task or pipeline that wasn't loaded into the debride analysis context?

Copy link
Member Author

Choose a reason for hiding this comment

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

There's no reference to it in cloud_controller_ng or capi-release. capi-release has references to CCNG's Drain code that debride didn't catch, but as far as I can tell that is the only place CCNG's code is referenced externally (and arguably should be replaced with a rake task)

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.

3 participants