mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-25 08:51:07 +01:00
[var] Remove over-optimization
This commit is contained in:
1 parent
469926cc45
commit
f2e73d37e7
1 file changed
-4
@@ -1552,10 +1552,6 @@ hb_font_set_var_coords_normalized (hb_font_t *font,
|
||||
if (font->immutable)
|
||||
return;
|
||||
|
||||
/* Skip tail zero entries. */
|
||||
while (coords_length && !coords[coords_length - 1])
|
||||
coords_length--;
|
||||
|
||||
int *copy = coords_length ? (int *) calloc (coords_length, sizeof (coords[0])) : NULL;
|
||||
if (unlikely (coords_length && !copy))
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user