Removed unused variable supp_size from plan_subset_encoding(...).

This commit is contained in:
Andi-Bogdan Postelnicu 2021-06-02 14:08:11 +03:00 committed by Behdad Esfahbod
parent 7ab0f4eda9
commit 243d056ff1

View File

@ -402,7 +402,7 @@ 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<hb_codepoint_t> supp_codes;
@ -412,7 +412,6 @@ struct cff_subset_plan {
return;
}
supp_size = 0;
supp_codes.init ();
subset_enc_num_codes = plan->num_output_glyphs () - 1;
@ -448,7 +447,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 ();