-
Notifications
You must be signed in to change notification settings - Fork 192
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
Possibly unused QueryBuilder code #3518
Comments
This function was part of some utility, in this specific case it would remove all results that fit the criterion of being used as an input to some Calc class. I think it could still be quickly fixed to do this. But I would suggest to remove it, to avoid there being more functionality than maintenance. Also, it seems that there was no test for this which is my fault.
¯_(ツ)_/¯ |
There definitely are - I just stumbled upon another one in #3522 The QueryBuilder is one of the worst offenders in terms of uncovered lines in a file (it is also a rather long file..). |
I guess most of these dead functions/methods have been lost in translation, i.e., left unused when updating the QueryBuilder to the new ORM (or similar). |
Thanks for the quick and detailed reply! I will make a PR, where I will remove it and possibly keep it open for anyone else who wants to remove more from the QB that has no purpose anymore in the code base 😅 |
Poking around in the front-end QueryBuilder code, it seems a function is never used.
I found this since it also calls the now obsolete attribute
self._imp
in it.The function is
except_if_input_to
and can be found here.A search through the whole repository for the function name only reveals a single hit - the definition of it.
@lekah is this function a leftover from a previous rewrite of the class, or the beginning of an addition to the QueryBuilder? And are there more of these dead-code-methods around that either need a purpose in a grander scheme or should simply be sent to oblivion?
The text was updated successfully, but these errors were encountered: