From efefec13ccedc1461867544e2066e2042e86c66f Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 2 Jun 2023 20:33:52 -0600 Subject: [PATCH] [subset/glyf] Remove unneeded codepath --- src/OT/glyf/SubsetGlyph.hh | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/OT/glyf/SubsetGlyph.hh b/src/OT/glyf/SubsetGlyph.hh index 4151ac245..ce838aecc 100644 --- a/src/OT/glyf/SubsetGlyph.hh +++ b/src/OT/glyf/SubsetGlyph.hh @@ -26,13 +26,6 @@ struct SubsetGlyph { TRACE_SERIALIZE (this); - if (length () == 0) - { - /* Fast path for retain-gid holes. */ - DEBUG_MSG (SUBSET, nullptr, "serialize empty glyph"); - return true; - } - hb_bytes_t dest_glyph = dest_start.copy (c); hb_bytes_t end_copy = dest_end.copy (c); if (!end_copy.arrayZ || !dest_glyph.arrayZ) {