Remove unnecessary check in hb_buffer_t::set_masks.

Bounds are already checked by the caller.

Closes #2073
This commit is contained in:
Evgeniy Reizner 2019-12-15 16:11:37 +02:00 committed by Behdad Esfahbod
parent 34ed8e7218
commit 780d640c02
1 changed files with 0 additions and 7 deletions

View File

@ -438,13 +438,6 @@ hb_buffer_t::set_masks (hb_mask_t value,
if (!mask) if (!mask)
return; return;
if (cluster_start == 0 && cluster_end == (unsigned int)-1) {
unsigned int count = len;
for (unsigned int i = 0; i < count; i++)
info[i].mask = (info[i].mask & not_mask) | value;
return;
}
unsigned int count = len; unsigned int count = len;
for (unsigned int i = 0; i < count; i++) for (unsigned int i = 0; i < count; i++)
if (cluster_start <= info[i].cluster && info[i].cluster < cluster_end) if (cluster_start <= info[i].cluster && info[i].cluster < cluster_end)