[HarfBuzz] harfbuzz-ng: Branch 'master'
Behdad Esfahbod
behdad at kemper.freedesktop.org
Thu Jan 6 11:44:35 PST 2011
src/hb-buffer.cc | 6 ------
1 file changed, 6 deletions(-)
New commits:
commit 1c3183027fe823cd673866ba29d169b69f8efba1
Author: Behdad Esfahbod <behdad at behdad.org>
Date: Thu Jan 6 14:44:14 2011 -0500
Remove unused realloc
We always allocate and grow str and pos together.
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);
}
More information about the HarfBuzz
mailing list