removed unused multi_val from DictVal
This commit is contained in:
parent
e1241636d6
commit
36c2c374bf
|
@ -596,22 +596,6 @@ struct ArgStack : Stack<ARG, 513>
|
|||
return (unsigned)i;
|
||||
}
|
||||
|
||||
inline void pop_delta (hb_vector_t<ARG>& 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]));
|
||||
|
|
|
@ -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<Number> multi_val;
|
||||
};
|
||||
|
||||
typedef DictVal NumDictVal;
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue