From b0debc32f6cedfa76a4851aa391f88ed1860955d Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 19 Jun 2019 18:42:39 -0700 Subject: [PATCH] [subset] Simplify collect_name_ids --- src/hb-subset-plan.cc | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/src/hb-subset-plan.cc b/src/hb-subset-plan.cc index baf6a19e9..f4877332b 100644 --- a/src/hb-subset-plan.cc +++ b/src/hb-subset-plan.cc @@ -194,25 +194,10 @@ static void _nameid_closure (hb_face_t *face, hb_set_t *nameids) { - hb_tag_t table_tags[32]; - unsigned count = ARRAY_LENGTH (table_tags); - hb_face_get_table_tags (face, 0, &count, table_tags); - for (unsigned int i = 0; i < count; i++) - { - hb_tag_t tag = table_tags[i]; - switch (tag) { #ifndef HB_NO_STAT - case HB_OT_TAG_STAT: - face->table.STAT->collect_name_ids (nameids); - break; + face->table.STAT->collect_name_ids (nameids); #endif - case HB_OT_TAG_fvar: - face->table.fvar->collect_name_ids (nameids); - break; - default: - break; - } - } + face->table.fvar->collect_name_ids (nameids); } /**