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 and obsolete code #3718

Merged
merged 9 commits into from
Sep 25, 2019
Merged

Remove unused and obsolete code #3718

merged 9 commits into from
Sep 25, 2019

Conversation

javierm
Copy link
Member

@javierm javierm commented Sep 24, 2019

Objectives

  • Remove useless code we've accidentally left
  • Reduce the number of unused variable warnings given by the Ruby interpreter

This code is obsolete since commit 085e6ec.
This code is obsolete since commit c6e4b24.
This code is obsolete since commits 122b170 and bbf3faa.
@javierm javierm self-assigned this Sep 24, 2019
@javierm javierm added this to Reviewing in Roadmap via automation Sep 24, 2019
This data is obsolete since commit 9d1ca3b.

Note we should have probably moved the test to the model, since now the
`to_csv` method isn't tested anywhwere, and we should probably add a
test in the future. The code now uses the new DownloadSetting model,
though, making it hard to test.
This URL was accidentally copied from Madrid's repository. However, we
don't use it in CONSUL.
It looks like these variables were left by accident. The Ruby
interpreter was giving us warnings about unused variables.
These tests use a "proceeding" method in proposals, which does not
exist.
This code was commented in commit ad8aba0.
The proposal parameter was accidentally added in commit 16692c9, but
the proposals index doesn't receive a proposal as parameter.
@javierm javierm changed the title Remove unused and unnecessary code Remove unused and obsolete code Sep 24, 2019
@javierm javierm mentioned this pull request Sep 24, 2019
@javierm javierm merged commit 8d41114 into master Sep 25, 2019
Roadmap automation moved this from Reviewing to Release 1.1.0 Sep 25, 2019
@javierm javierm deleted the remove_obsolete_code branch September 25, 2019 09:46
@javierm javierm mentioned this pull request Sep 26, 2019
smarques pushed a commit to venetochevogliamo/consul that referenced this pull request Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Roadmap
  
Release 1.1.0
Development

Successfully merging this pull request may close these issues.

None yet

1 participant