mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-24 17:06:16 +03:00
Removed unused code
This commit is contained in:
parent
27c1bb2654
commit
8de66597f9
|
@ -922,10 +922,7 @@ font_render(FontObject *self, PyObject *args) {
|
|||
width += ceil(stroke_width * 2 + x_start);
|
||||
height += ceil(stroke_width * 2 + y_start);
|
||||
image = PyObject_CallFunction(fill, "ii", width, height);
|
||||
if (image == Py_None) {
|
||||
PyMem_Del(glyph_info);
|
||||
return Py_BuildValue("N(ii)", image, 0, 0);
|
||||
} else if (image == NULL) {
|
||||
if (image == NULL) {
|
||||
PyMem_Del(glyph_info);
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user