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 #9915

Closed
wants to merge 11 commits into from
Closed

Remove unused code #9915

wants to merge 11 commits into from

Conversation

bencomp
Copy link
Contributor

@bencomp bencomp commented Sep 14, 2023

What this PR does / why we need it:

Remove unused imports and remove private methods that are not called. These unused imports and methods were flagged by Sonarlint.

Having fewer methods (some with todos) should help reduce cognitive load. It may make development smoother, since IDEs and other tools have fewer lines of code to consider.

Which issue(s) this PR closes:

Closes #9918

Special notes for your reviewer:
I know, this is a big change. The changes are strictly limited to the imports and unused methods.

Did you see how the test coverage went up? 😉

Suggestions on how to test this:
Run the integration tests; the unit tests already pass.

Does this PR introduce a user interface change? If mockups are available, please link/include them here:
No.

Is there a release notes update needed for this change?:
No.

Additional documentation:
https://sonarcloud.io/summary/new_code?id=bencomp_dataverse&branch=unused-code is a comparison of this branch and my fork's develop branch, which shouldn't be far behind the IQSS develop branch.

This does not check for imports that are covered by `import *`
@coveralls
Copy link

coveralls commented Sep 14, 2023

Coverage Status

coverage: 20.2% (+0.2%) from 20.038% when pulling 1ebd2ef on bencomp:fix/unused-code into 7e0738e on IQSS:develop.

Removing unused methods made some imports unused
@bencomp bencomp marked this pull request as ready for review September 14, 2023 14:25
@bencomp
Copy link
Contributor Author

bencomp commented Oct 30, 2023

Merge conflict... this PR is too big, so I will try to split it into more smaller PRs.

@bencomp bencomp closed this Oct 30, 2023
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.

Feature Request/Idea: Remove unused imports and methods
2 participants