[cmap] remove dead code

This commit is contained in:
ckitagawa 2020-02-05 09:26:45 -05:00 committed by Ebrahim Byagowi
parent 43253e404d
commit 03f778cf3c
1 changed files with 1 additions and 2 deletions

View File

@ -1209,7 +1209,7 @@ struct cmap
if (unlikely (!encodingrec_iter.len ())) return_trace (false);
const EncodingRecord *unicode_bmp= nullptr, *unicode_ucs4 = nullptr, *unicode_uvs = nullptr, *ms_bmp = nullptr, *ms_ucs4 = nullptr;
const EncodingRecord *unicode_bmp= nullptr, *unicode_ucs4 = nullptr, *ms_bmp = nullptr, *ms_ucs4 = nullptr;
bool has_format12 = false;
for (const EncodingRecord& _ : encodingrec_iter)
@ -1220,7 +1220,6 @@ struct cmap
const EncodingRecord *table = hb_addressof (_);
if (_.platformID == 0 && _.encodingID == 3) unicode_bmp = table;
else if (_.platformID == 0 && _.encodingID == 4) unicode_ucs4 = table;
else if (_.platformID == 0 && _.encodingID == 5) unicode_uvs = table;
else if (_.platformID == 3 && _.encodingID == 1) ms_bmp = table;
else if (_.platformID == 3 && _.encodingID == 10) ms_ucs4 = table;
}