[post] Minor

This commit is contained in:
Behdad Esfahbod 2017-10-29 14:52:52 -06:00
parent 5de83fab94
commit b98c7c3f1f
1 changed files with 1 additions and 5 deletions

View File

@ -130,9 +130,6 @@ struct post
if (glyph >= glyphNameIndex->len)
return false;
if (!buf_len)
return true;
unsigned int index = glyphNameIndex->array[glyph];
if (index < NUM_FORMAT1_NAMES)
{
@ -146,8 +143,7 @@ struct post
if (index >= index_to_offset.len)
return false;
unsigned int offset = index_to_offset[index];
unsigned int offset = index_to_offset.array[index];
const uint8_t *data = pool + offset;
unsigned int name_length = *data;