Removed unused code by radarhere · Pull Request #8447 · python-pillow/Pillow

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@radarhere

Copy link Copy Markdown

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

@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

Reviewers

No reviews

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@radarhere @hugovk