1 From f96b2b653c605679b83a820b38f49a0a0f4baf42 Mon Sep 17 00:00:00 2001
2 From: Andi-Bogdan Postelnicu <abpostelnicu@me.com>
3 Date: Wed, 2 Jun 2021 14:08:11 +0300
4 Subject: [PATCH] Removed unused variable `supp_size` from
5 plan_subset_encoding(...).
7 Upstream-Status: Backport [https://github.com/harfbuzz/harfbuzz/commit/243d056ff1c2af583ceb67e5dfbfaac51dc96e63]
8 Signed-off-by: Khem Raj <raj.khem@gmail.com>
10 src/hb-subset-cff1.cc | 4 +---
11 1 file changed, 1 insertion(+), 3 deletions(-)
13 diff --git a/src/hb-subset-cff1.cc b/src/hb-subset-cff1.cc
14 index df322f8..35dae7b 100644
15 --- a/src/hb-subset-cff1.cc
16 +++ b/src/hb-subset-cff1.cc
17 @@ -402,7 +402,7 @@ struct cff_subset_plan {
18 void plan_subset_encoding (const OT::cff1::accelerator_subset_t &acc, hb_subset_plan_t *plan)
20 const Encoding *encoding = acc.encoding;
21 - unsigned int size0, size1, supp_size;
22 + unsigned int size0, size1;
23 hb_codepoint_t code, last_code = CFF_UNDEF_CODE;
24 hb_vector_t<hb_codepoint_t> supp_codes;
26 @@ -412,7 +412,6 @@ struct cff_subset_plan {
33 subset_enc_num_codes = plan->num_output_glyphs () - 1;
34 @@ -448,7 +447,6 @@ struct cff_subset_plan {
35 code_pair_t pair = { supp_codes[i], sid };
36 subset_enc_supp_codes.push (pair);
38 - supp_size += SuppEncoding::static_size * supp_codes.length;