[var] Remove over-optimization

pull/407/head
Behdad Esfahbod 8 years ago
parent 469926cc45
commit f2e73d37e7
  1. 4
      src/hb-font.cc

@ -1552,10 +1552,6 @@ hb_font_set_var_coords_normalized (hb_font_t *font,
if (font->immutable) if (font->immutable)
return; 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; int *copy = coords_length ? (int *) calloc (coords_length, sizeof (coords[0])) : NULL;
if (unlikely (coords_length && !copy)) if (unlikely (coords_length && !copy))
return; return;

Loading…
Cancel
Save