Remove unused realloc

We always allocate and grow str and pos together.
This commit is contained in:
Behdad Esfahbod 2011-01-06 14:44:14 -05:00
parent 76691f0240
commit 1c3183027f
1 changed files with 0 additions and 6 deletions

View File

@ -264,12 +264,6 @@ hb_buffer_clear_positions (hb_buffer_t *buffer)
buffer->have_output = FALSE; buffer->have_output = FALSE;
buffer->have_positions = TRUE; 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); memset (buffer->pos, 0, sizeof (buffer->pos[0]) * buffer->len);
} }