[cff-common] Fix get_size() for Null object

The special-casing didn't make sense.
This commit is contained in:
Behdad Esfahbod 2022-05-09 15:29:14 -06:00
parent c9cc7d5d21
commit 94f7a26322
1 changed files with 0 additions and 1 deletions

View File

@ -265,7 +265,6 @@ struct CFFIndex
unsigned int get_size () const
{
if (this == &Null (CFFIndex)) return 0;
if (count)
return min_size + offSize.static_size + offset_array_size () + (offset_at (count) - 1);
return min_size; /* empty CFFIndex contains count only */