[subset] Simplify collect_name_ids
authorBehdad Esfahbod <behdad@behdad.org>
Thu, 20 Jun 2019 01:42:39 +0000 (18:42 -0700)
committerBehdad Esfahbod <behdad@behdad.org>
Thu, 20 Jun 2019 01:42:51 +0000 (18:42 -0700)
src/hb-subset-plan.cc

index baf6a19..f487733 100644 (file)
@@ -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);
 }
 
 /**