Remove unused realloc
authorBehdad Esfahbod <behdad@behdad.org>
Thu, 6 Jan 2011 19:44:14 +0000 (14:44 -0500)
committerBehdad Esfahbod <behdad@behdad.org>
Thu, 6 Jan 2011 19:44:14 +0000 (14:44 -0500)
We always allocate and grow str and pos together.

src/hb-buffer.cc

index 03e8e1a..f50d87b 100644 (file)
@@ -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);
 }