Remove unused function

This commit is contained in:
Behdad Esfahbod 2010-10-27 17:37:20 -04:00
parent 1115890b90
commit 870e2d6eac
2 changed files with 0 additions and 37 deletions

View File

@ -55,12 +55,6 @@ _hb_buffer_swap (hb_buffer_t *buffer);
HB_INTERNAL void HB_INTERNAL void
_hb_buffer_clear_output (hb_buffer_t *buffer); _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_INTERNAL void
_hb_buffer_replace_glyphs_be16 (hb_buffer_t *buffer, _hb_buffer_replace_glyphs_be16 (hb_buffer_t *buffer,
unsigned int num_in, unsigned int num_in,
@ -125,10 +119,6 @@ struct _hb_buffer_t {
inline void swap (void) { _hb_buffer_swap (this); } inline void swap (void) { _hb_buffer_swap (this); }
inline void clear_output (void) { _hb_buffer_clear_output (this); } inline void clear_output (void) { _hb_buffer_clear_output (this); }
inline void next_glyph (void) { _hb_buffer_next_glyph (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, inline void replace_glyphs_be16 (unsigned int num_in,
unsigned int num_out, unsigned int num_out,
const uint16_t *glyph_data_be) const uint16_t *glyph_data_be)

View File

@ -310,33 +310,6 @@ _hb_buffer_swap (hb_buffer_t *buffer)
buffer->i = 0; buffer->i = 0;
} }
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 void
_hb_buffer_replace_glyphs_be16 (hb_buffer_t *buffer, _hb_buffer_replace_glyphs_be16 (hb_buffer_t *buffer,
unsigned int num_in, unsigned int num_in,