From 36c2c374bf9c2d0ca903e601760e69bfc3da5388 Mon Sep 17 00:00:00 2001 From: Michiharu Ariza Date: Tue, 23 Oct 2018 15:11:09 -0700 Subject: [PATCH] removed unused multi_val from DictVal --- src/hb-cff-interp-common.hh | 16 ---------------- src/hb-cff-interp-dict-common.hh | 3 --- src/hb-ot-cff1-table.hh | 2 +- src/hb-ot-cff2-table.hh | 1 - 4 files changed, 1 insertion(+), 21 deletions(-) diff --git a/src/hb-cff-interp-common.hh b/src/hb-cff-interp-common.hh index 167bd7a7e..fcf4d72e5 100644 --- a/src/hb-cff-interp-common.hh +++ b/src/hb-cff-interp-common.hh @@ -596,22 +596,6 @@ struct ArgStack : Stack return (unsigned)i; } - inline void pop_delta (hb_vector_t& vec, bool even=false) - { - if (even && unlikely ((this->count & 1) != 0)) - { - S::set_error (); - return; - } - - float val = 0.0f; - for (unsigned int i = 0; i < S::count; i++) { - val += S::elements[i].to_real (); - ARG *n = vec.push (); - n->set_real (val); - } - } - inline void push_longint_from_substr (SubByteStr& substr) { push_int ((substr[0] << 24) | (substr[1] << 16) | (substr[2] << 8) | (substr[3])); diff --git a/src/hb-cff-interp-dict-common.hh b/src/hb-cff-interp-dict-common.hh index 369206218..56988a33e 100644 --- a/src/hb-cff-interp-dict-common.hh +++ b/src/hb-cff-interp-dict-common.hh @@ -39,16 +39,13 @@ struct DictVal : OpStr inline void init (void) { single_val.set_int (0); - multi_val.init (); } inline void fini (void) { - multi_val.fini (); } Number single_val; - hb_vector_t multi_val; }; typedef DictVal NumDictVal; diff --git a/src/hb-ot-cff1-table.hh b/src/hb-ot-cff1-table.hh index 9b913e003..b99b8cfc6 100644 --- a/src/hb-ot-cff1-table.hh +++ b/src/hb-ot-cff1-table.hh @@ -857,7 +857,7 @@ struct CFF1PrivateDictOpSet : DictOpSet case OpCode_FamilyOtherBlues: case OpCode_StemSnapH: case OpCode_StemSnapV: - env.argStack.pop_delta (val.multi_val); + env.clear_args (); break; case OpCode_StdHW: case OpCode_StdVW: diff --git a/src/hb-ot-cff2-table.hh b/src/hb-ot-cff2-table.hh index dd79b420d..e27ace0d1 100644 --- a/src/hb-ot-cff2-table.hh +++ b/src/hb-ot-cff2-table.hh @@ -338,7 +338,6 @@ struct CFF2PrivateDictOpSet : DictOpSet case OpCode_FamilyOtherBlues: case OpCode_StemSnapH: case OpCode_StemSnapV: - env.argStack.pop_delta (val.multi_val); env.clear_args (); break; case OpCode_Subrs: