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 variable #5140

Merged
merged 1 commit into from Dec 27, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/_imagingft.c
Expand Up @@ -877,7 +877,6 @@ font_render(FontObject* self, PyObject* args)
unsigned char convert_scale; /* scale factor for non-8bpp bitmaps */
Imaging im;
Py_ssize_t id;
int horizontal_dir; /* is primary axis horizontal? */
int mask = 0; /* is FT_LOAD_TARGET_MONO enabled? */
int color = 0; /* is FT_LOAD_COLOR enabled? */
int stroke_width = 0;
Expand All @@ -897,8 +896,6 @@ font_render(FontObject* self, PyObject* args)
return NULL;
}

horizontal_dir = dir && strcmp(dir, "ttb") == 0 ? 0 : 1;

mask = mode && strcmp(mode, "1") == 0;
color = mode && strcmp(mode, "RGBA") == 0;

Expand Down