Skip to content

Commit

Permalink
Merge pull request #7210 from radarhere/unused
Browse files Browse the repository at this point in the history
Removed unused code
  • Loading branch information
radarhere committed Jun 12, 2023
2 parents 706f8f6 + 1756df4 commit 9f11034
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
4 changes: 0 additions & 4 deletions src/PIL/ImageFont.py
Expand Up @@ -226,10 +226,6 @@ def __setstate__(self, state):
path, size, index, encoding, layout_engine = state
self.__init__(path, size, index, encoding, layout_engine)

def _multiline_split(self, text):
split_character = "\n" if isinstance(text, str) else b"\n"
return text.split(split_character)

def getname(self):
"""
:return: A tuple of the font family (e.g. Helvetica) and the font style
Expand Down
6 changes: 2 additions & 4 deletions src/_imagingft.c
Expand Up @@ -254,9 +254,7 @@ text_layout_raqm(
const char *dir,
PyObject *features,
const char *lang,
GlyphInfo **glyph_info,
int mask,
int color) {
GlyphInfo **glyph_info) {
size_t i = 0, count = 0, start = 0;
raqm_t *rq;
raqm_glyph_t *glyphs = NULL;
Expand Down Expand Up @@ -493,7 +491,7 @@ text_layout(
#ifdef HAVE_RAQM
if (have_raqm && self->layout_engine == LAYOUT_RAQM) {
count = text_layout_raqm(
string, self, dir, features, lang, glyph_info, mask, color);
string, self, dir, features, lang, glyph_info);
} else
#endif
{
Expand Down

0 comments on commit 9f11034

Please sign in to comment.