From ac802955cd26ba9175b5be36ca653c0904c9723a Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 4 Aug 2017 16:40:40 +0100 Subject: [PATCH] Remove unneeded check FcFreeTypeCheckGlyph() has only one call-site left, and that checks for glyph != 0 already. --- src/fcfreetype.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/fcfreetype.c b/src/fcfreetype.c index 712c056..2f99928 100644 --- a/src/fcfreetype.c +++ b/src/fcfreetype.c @@ -2075,11 +2075,7 @@ FcFreeTypeCheckGlyph (FT_Face face, { FT_Int load_flags = FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH | FT_LOAD_NO_SCALE | FT_LOAD_NO_HINTING; - if (!glyph) - return FcFalse; - - /* - * When using scalable fonts, only report those glyphs + /* When using scalable fonts, only report those glyphs * which can be scaled; otherwise those fonts will * only be available at some sizes, and never when * transformed. Avoid this by simply reporting bitmap-only