mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-14 17:13:40 +00:00
[subset/cff1] Remove an unneeded copy method
Same as serializer embed().
This commit is contained in:
parent
7d9698123c
commit
5676adefbc
2 changed files with 1 additions and 11 deletions
|
@ -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,
|
||||
|
|
|
@ -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 */
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue