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

Removed unused code #8447

Merged
merged 1 commit into from
Oct 7, 2024
Merged

Conversation

radarhere
Copy link
Member

Pillow/src/_imagingft.c

Lines 924 to 927 in 27c1bb2

image = PyObject_CallFunction(fill, "ii", width, height);
if (image == Py_None) {
PyMem_Del(glyph_info);
return Py_BuildValue("N(ii)", image, 0, 0);

The scenario where the Python fill() function might return None began in #7247. However, when it was removed in #7645, the C code to handle it stayed. This PR now removes that code.

@hugovk hugovk merged commit 026181e into python-pillow:main Oct 7, 2024
48 of 49 checks passed
@radarhere radarhere deleted the imagingft_unused branch October 7, 2024 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants