From 70d97d079b73cc39d457dcb18ffae4eca3b5f5b0 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 26 Nov 2022 15:16:11 -0700 Subject: [PATCH] [subset-cff] Remove unused argument --- src/hb-cff2-interp-cs.hh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/hb-cff2-interp-cs.hh b/src/hb-cff2-interp-cs.hh index dbad519d9..87d8fb1b4 100644 --- a/src/hb-cff2-interp-cs.hh +++ b/src/hb-cff2-interp-cs.hh @@ -40,10 +40,11 @@ struct blend_arg_t : number_t void set_real (double v) { reset_blends (); number_t::set_real (v); } void set_blends (unsigned int numValues_, unsigned int valueIndex_, - unsigned int numBlends, hb_array_t blends_) + hb_array_t blends_) { numValues = numValues_; valueIndex = valueIndex_; + unsigned numBlends = blends_.length; if (unlikely (!deltas.resize (numBlends))) return; for (unsigned int i = 0; i < numBlends; i++) @@ -222,7 +223,7 @@ struct cff2_cs_opset_t : cs_opset_t, PAR const hb_array_t blends, unsigned n, unsigned i) { - arg.set_blends (n, i, blends.length, blends); + arg.set_blends (n, i, blends); } template