[sbix] Remove a couple of extra checks

This commit is contained in:
Behdad Esfahbod 2018-10-28 15:05:40 -07:00
parent 3770282c83
commit 400bc3f030

View File

@ -162,7 +162,7 @@ struct sbix
/* only to support dump-emoji, don't use it anywhere else */ /* only to support dump-emoji, don't use it anywhere else */
inline unsigned int *get_available_ppems (unsigned int *length) inline unsigned int *get_available_ppems (unsigned int *length)
{ {
if (unlikely (sbix_len == 0 || table->strikes.len == 0)) if (unlikely (table->strikes.len == 0))
return nullptr; return nullptr;
*length = table->strikes.len; *length = table->strikes.len;
unsigned int *result; unsigned int *result;
@ -185,7 +185,7 @@ struct sbix
int *x_offset, int *x_offset,
int *y_offset) const int *y_offset) const
{ {
if (unlikely (!sbix_len || !table->strikes.len)) if (unlikely (!table->strikes.len))
return hb_blob_get_empty (); return hb_blob_get_empty ();
unsigned int requested_ppem = MAX (font->x_ppem, font->y_ppem); unsigned int requested_ppem = MAX (font->x_ppem, font->y_ppem);