From 1c3183027fe823cd673866ba29d169b69f8efba1 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 6 Jan 2011 14:44:14 -0500 Subject: [PATCH] Remove unused realloc We always allocate and grow str and pos together. --- src/hb-buffer.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/hb-buffer.cc b/src/hb-buffer.cc index 03e8e1a..f50d87b 100644 --- a/src/hb-buffer.cc +++ b/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); } -- 2.7.4