Remove unused realloc
We always allocate and grow str and pos together.
This commit is contained in:
parent
76691f0240
commit
1c3183027f
|
@ -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…
Reference in New Issue