Remove unneeded check

FcFreeTypeCheckGlyph() has only one call-site left, and that checks for
glyph != 0 already.
This commit is contained in:
Behdad Esfahbod 2017-08-04 16:40:40 +01:00
parent d7f5332410
commit ac802955cd
1 changed files with 1 additions and 5 deletions

View File

@ -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