-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
DEP: Remove paeth_predictor #2773
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2773 +/- ##
==========================================
- Coverage 95.12% 95.11% -0.01%
==========================================
Files 51 51
Lines 8555 8545 -10
Branches 1706 1704 -2
==========================================
- Hits 8138 8128 -10
Misses 263 263
Partials 154 154 ☔ View full report in Codecov by Sentry. |
IMHO this just reduces readability instead of really simplifying it. |
Maybe there is another way to refactor to avoid the if statement, as this is just a map reduce. |
paeth_predictor is only used to test itself; it is not used elsewhere. The functionality of this function is at line 221 of filters.py.
Thoughts? |
There apparently have been plans by @MartinThoma to deprecate and finally drop this method in #2068 (comment), but for now this apparently did not have any real priority. |
Thanks @stefan6419846. What about moving paeth_predictor to filters.py (it is only used in this file) and calling it within _decode_png_prediction. |
Where is it used in |
The body of paeth_predictor is on line 221. |
This function is unused.
I have to admit that I did not look for code copies, thus my search would not see this. Therefore just keeping it does not make much sense either. |
I agree to remove it. |
No description provided.