[subset/cff1] Remove an unneeded copy method

Same as serializer embed().
This commit is contained in:
Behdad Esfahbod 2023-06-05 15:56:19 -06:00
parent 7d9698123c
commit 5676adefbc
2 changed files with 1 additions and 11 deletions

View file

@ -62,16 +62,6 @@ struct CFFIndex
unsigned int offset_array_size () const
{ return offSize * (count + 1); }
CFFIndex *copy (hb_serialize_context_t *c) const
{
TRACE_SERIALIZE (this);
unsigned int size = get_size ();
CFFIndex *out = c->allocate_size<CFFIndex> (size, false);
if (likely (out))
hb_memcpy (out, this, size);
return_trace (out);
}
template <typename Iterable,
hb_requires (hb_is_iterable (Iterable))>
bool serialize (hb_serialize_context_t *c,

View file

@ -911,7 +911,7 @@ static bool _serialize_cff1 (hb_serialize_context_t *c,
cff->offSize = 4; /* unused? */
/* name INDEX */
if (unlikely (!(*acc.nameIndex).copy (c))) return false;
if (unlikely (!c->embed (*acc.nameIndex))) return false;
/* top dict INDEX */
{