mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 15:01:01 +01:00
Remove unnecessary check in hb_buffer_t::set_masks.
Bounds are already checked by the caller. Closes #2073
This commit is contained in:
1 parent
34ed8e7218
commit
780d640c02
1 file changed
-7
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user