From 8e2520a3ada16791527824357d109dadb064c007 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Fri, 11 Nov 2022 07:22:09 -0300 Subject: [PATCH] Remove supp_size variable --- harfbuzz-2.6.8/src/hb-subset-cff1.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/harfbuzz-2.6.8/src/hb-subset-cff1.cc b/harfbuzz-2.6.8/src/hb-subset-cff1.cc index f3ed518f..029ccf60 100644 --- a/harfbuzz-2.6.8/src/hb-subset-cff1.cc +++ b/harfbuzz-2.6.8/src/hb-subset-cff1.cc @@ -402,12 +402,11 @@ struct cff_subset_plan { void plan_subset_encoding (const OT::cff1::accelerator_subset_t &acc, hb_subset_plan_t *plan) { const Encoding *encoding = acc.encoding; - unsigned int size0, size1, supp_size; + unsigned int size0, size1; hb_codepoint_t code, last_code = CFF_UNDEF_CODE; hb_vector_t supp_codes; subset_enc_code_ranges.resize (0); - supp_size = 0; supp_codes.init (); subset_enc_num_codes = plan->num_output_glyphs () - 1; @@ -443,7 +442,6 @@ struct cff_subset_plan { code_pair_t pair = { supp_codes[i], sid }; subset_enc_supp_codes.push (pair); } - supp_size += SuppEncoding::static_size * supp_codes.length; } } supp_codes.fini ();