[vector] Remove .fini_deep()

This commit is contained in:
Behdad Esfahbod 2022-01-18 13:08:34 -07:00
parent 4eb6e6ea16
commit 6ef83c2c31
2 changed files with 2 additions and 9 deletions

View File

@ -383,7 +383,7 @@ struct cff_stack_t
for (unsigned int i = 0; i < elements.length; i++) for (unsigned int i = 0; i < elements.length; i++)
elements[i].init (); elements[i].init ();
} }
void fini () { elements.fini_deep (); } void fini () { elements.fini (); }
ELEM& operator [] (unsigned int i) ELEM& operator [] (unsigned int i)
{ {
@ -553,7 +553,7 @@ struct parsed_values_t
opStart = 0; opStart = 0;
values.init (); values.init ();
} }
void fini () { values.fini_deep (); } void fini () { values.fini (); }
void add_op (op_code_t op, const byte_str_ref_t& str_ref = byte_str_ref_t ()) void add_op (op_code_t op, const byte_str_ref_t& str_ref = byte_str_ref_t ())
{ {

View File

@ -86,13 +86,6 @@ struct hb_vector_t
hb_free (arrayZ); hb_free (arrayZ);
init (); init ();
} }
void fini_deep ()
{
unsigned int count = length;
for (unsigned int i = 0; i < count; i++)
arrayZ[i].fini ();
fini ();
}
void reset () void reset ()
{ {