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

Clean up unused code and ignored tests #1291

Merged
merged 3 commits into from
Feb 9, 2020

Conversation

pmiddend
Copy link

@pmiddend pmiddend commented Dec 13, 2019

As the title suggests, this PR cleans up some unused code and also removes tests that have @Ignore on them.

It was done by applying the unused declaration inspection to the whole codebase and then hand-picking. Manual work was needed because simply removing all of it would have broken OSGi (because IntelliJ doesn't know about activate and such being actually used) and because not all unused code is bad per se. Stuff like *Query classes with with methods, for example, and getters in general, I left as is (mostly).

I hope I didn't remove too much. Please correct me if I'm wrong. I'd rather not remove useful code, but rotten code just hinders sensible refactorings and makes the code more "static" than it needs to be.

@lkiesow
Copy link
Member

lkiesow commented Jan 10, 2020

Note that this has a few conflicts.

@pmiddend
Copy link
Author

Conflicts are fixed now.

@lkiesow lkiesow self-assigned this Feb 9, 2020
lkiesow added a commit that referenced this pull request Feb 9, 2020
@lkiesow lkiesow merged commit 67955ed into opencast:develop Feb 9, 2020
@lkiesow
Copy link
Member

lkiesow commented Feb 9, 2020

Skimmed the code and did some production tests. Everything seems to work as expected → merged.

gregorydlogan added a commit to gregorydlogan/opencast that referenced this pull request Nov 20, 2020
…ly needed

The MediaPackageImpl class does not demarshall from XML without this method, and it was accidentally cleaned up
during a cleanup purge.  This commit reverts that change, resolving opencast#1860

Fixes opencast#1860
lkiesow pushed a commit that referenced this pull request Nov 20, 2020
The MediaPackageImpl class does not demarshall from XML without this method, and it was accidentally cleaned up
during a cleanup purge.  This commit reverts that change, resolving #1860

Fixes #1860
LinqLover pushed a commit to LinqLover/opencast that referenced this pull request Nov 24, 2020
…ly needed

The MediaPackageImpl class does not demarshall from XML without this method, and it was accidentally cleaned up
during a cleanup purge.  This commit reverts that change, resolving opencast#1860

Fixes opencast#1860
@mtneug mtneug mentioned this pull request Sep 19, 2022
7 tasks
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.

2 participants