Remove unnecessary check in hb_buffer_t::set_masks.
Bounds are already checked by the caller. Closes #2073
This commit is contained in:
parent
34ed8e7218
commit
780d640c02
|
@ -438,13 +438,6 @@ hb_buffer_t::set_masks (hb_mask_t value,
|
|||
if (!mask)
|
||||
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;
|
||||
for (unsigned int i = 0; i < count; i++)
|
||||
if (cluster_start <= info[i].cluster && info[i].cluster < cluster_end)
|
||||
|
|
Loading…
Reference in New Issue