From 400bc3f030b4ffebe24aa3562d8eb5fcc1cf4bdd Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 28 Oct 2018 15:05:40 -0700 Subject: [PATCH] [sbix] Remove a couple of extra checks --- src/hb-ot-color-sbix-table.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-ot-color-sbix-table.hh b/src/hb-ot-color-sbix-table.hh index 5aee44e68..2331a5f9a 100644 --- a/src/hb-ot-color-sbix-table.hh +++ b/src/hb-ot-color-sbix-table.hh @@ -162,7 +162,7 @@ struct sbix /* only to support dump-emoji, don't use it anywhere else */ 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; *length = table->strikes.len; unsigned int *result; @@ -185,7 +185,7 @@ struct sbix int *x_offset, int *y_offset) const { - if (unlikely (!sbix_len || !table->strikes.len)) + if (unlikely (!table->strikes.len)) return hb_blob_get_empty (); unsigned int requested_ppem = MAX (font->x_ppem, font->y_ppem);