From c03c0a9d765f2ea0b67b15f4ead4aa35c76279ae Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 25 Jun 2023 17:13:59 -0600 Subject: [PATCH] [subset/cff1] Remove unnecessary remap_sid_t::reset The object is initialized automatically. --- src/hb-subset-cff1.cc | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/hb-subset-cff1.cc b/src/hb-subset-cff1.cc index f4cf88e47..63d38da88 100644 --- a/src/hb-subset-cff1.cc +++ b/src/hb-subset-cff1.cc @@ -42,13 +42,6 @@ struct remap_sid_t { unsigned get_population () const { return map.get_population (); } - void reset () - { - map.reset (); - vector.resize (0); - next = 0; - } - void resize (unsigned size) { map.resize (size); @@ -598,8 +591,6 @@ struct cff1_subset_plan bool collect_sids_in_dicts (const OT::cff1::accelerator_subset_t &acc) { - sidmap.reset (); - for (unsigned int i = 0; i < name_dict_values_t::ValCount; i++) { unsigned int sid = acc.topDict.nameSIDs[i];