Remove unused realloc

We always allocate and grow str and pos together.
pull/1/head
Behdad Esfahbod 14 years ago
parent 76691f0240
commit 1c3183027f
  1. 6
      src/hb-buffer.cc

@ -264,12 +264,6 @@ hb_buffer_clear_positions (hb_buffer_t *buffer)
buffer->have_output = FALSE;
buffer->have_positions = TRUE;
if (unlikely (!buffer->pos))
{
buffer->pos = (hb_glyph_position_t *) calloc (buffer->allocated, sizeof (buffer->pos[0]));
return;
}
memset (buffer->pos, 0, sizeof (buffer->pos[0]) * buffer->len);
}

Loading…
Cancel
Save