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 more unused interface classes #519

Merged
merged 3 commits into from
Dec 23, 2020

Conversation

lonvia
Copy link
Collaborator

@lonvia lonvia commented Dec 22, 2020

The Elastic*Searcher interfaces each have exactly one implementation and one place where they are used. As it is unlikely that we provide alternative implementations in the future, the interfaces might as well be removed.

One of the two implementations of the TagFilterQueryBuilder interface has just had noops for most of the functions. Removing the interface removes a lot of dead code.

Both interfaces had exactly one instanciation each making them
unnecessary.
The two implementing classes are so different, that a common interface
just leads to a lot of dead code in functions that are never called.
The interface they were named after no longer exists.
@lonvia lonvia merged commit 92c08d3 into komoot:master Dec 23, 2020
@lonvia lonvia deleted the remove-unused-interfaces branch December 23, 2020 08:36
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.

1 participant