Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

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

Appearance settings

Removed unused code#8447

Merged
hugovk merged 1 commit into
python-pillow:mainpython-pillow/Pillow:mainfrom
radarhere:imagingft_unusedradarhere/Pillow:imagingft_unusedCopy head branch name to clipboard
Oct 7, 2024
Merged

Removed unused code#8447
hugovk merged 1 commit into
python-pillow:mainpython-pillow/Pillow:mainfrom
radarhere:imagingft_unusedradarhere/Pillow:imagingft_unusedCopy head branch name to clipboard

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.