Remove unused function
authorBehdad Esfahbod <behdad@behdad.org>
Wed, 27 Oct 2010 21:37:20 +0000 (17:37 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Tue, 2 Nov 2010 23:12:58 +0000 (19:12 -0400)
src/hb-buffer-private.hh
src/hb-buffer.cc

index de72220..de698ed 100644 (file)
@@ -56,12 +56,6 @@ HB_INTERNAL void
 _hb_buffer_clear_output (hb_buffer_t *buffer);
 
 HB_INTERNAL void
-_hb_buffer_replace_glyphs (hb_buffer_t *buffer,
-                          unsigned int num_in,
-                          unsigned int num_out,
-                          const hb_codepoint_t *glyph_data);
-
-HB_INTERNAL void
 _hb_buffer_replace_glyphs_be16 (hb_buffer_t *buffer,
                                unsigned int num_in,
                                unsigned int num_out,
@@ -125,10 +119,6 @@ struct _hb_buffer_t {
   inline void swap (void) { _hb_buffer_swap (this); }
   inline void clear_output (void) { _hb_buffer_clear_output (this); }
   inline void next_glyph (void) { _hb_buffer_next_glyph (this); }
-  inline void replace_glyphs (unsigned int num_in,
-                             unsigned int num_out,
-                             const hb_codepoint_t *glyph_data)
-  { _hb_buffer_replace_glyphs (this, num_in, num_out, glyph_data); }
   inline void replace_glyphs_be16 (unsigned int num_in,
                                   unsigned int num_out,
                                   const uint16_t *glyph_data_be)
index 2461046..daf9d53 100644 (file)
@@ -311,33 +311,6 @@ _hb_buffer_swap (hb_buffer_t *buffer)
 }
 
 void
-_hb_buffer_replace_glyphs (hb_buffer_t *buffer,
-                          unsigned int num_in,
-                          unsigned int num_out,
-                          const hb_codepoint_t *glyph_data)
-{
-  if (buffer->out_info != buffer->info ||
-      buffer->out_len + num_out > buffer->i + num_in)
-  {
-    if (unlikely (!_hb_buffer_ensure_separate (buffer, buffer->out_len + num_out)))
-      return;
-  }
-
-  hb_glyph_info_t orig_info = buffer->info[buffer->i];
-
-  for (unsigned int i = 0; i < num_out; i++)
-  {
-    hb_glyph_info_t *info = &buffer->out_info[buffer->out_len + i];
-    *info = orig_info;
-    info->codepoint = glyph_data[i];
-    info->gproperty() = HB_BUFFER_GLYPH_PROPERTIES_UNKNOWN;
-  }
-
-  buffer->i  += num_in;
-  buffer->out_len += num_out;
-}
-
-void
 _hb_buffer_replace_glyphs_be16 (hb_buffer_t *buffer,
                                unsigned int num_in,
                                unsigned int num_out,