Remove unused buffer->replace_glyphs_be16

This commit is contained in:
Behdad Esfahbod 2012-06-08 21:45:00 -04:00
parent 3ec77d6ae0
commit e085fcf7ca
3 changed files with 0 additions and 34 deletions

View File

@ -110,9 +110,6 @@ struct _hb_buffer_t {
HB_INTERNAL void swap_buffers (void);
HB_INTERNAL void clear_output (void);
HB_INTERNAL void clear_positions (void);
HB_INTERNAL void replace_glyphs_be16 (unsigned int num_in,
unsigned int num_out,
const char *glyph_data_be);
HB_INTERNAL void replace_glyphs (unsigned int num_in,
unsigned int num_out,
const hb_codepoint_t *glyph_data);

View File

@ -230,29 +230,6 @@ hb_buffer_t::swap_buffers (void)
idx = 0;
}
void
hb_buffer_t::replace_glyphs_be16 (unsigned int num_in,
unsigned int num_out,
const char *glyph_data_be)
{
if (!make_room_for (num_in, num_out)) return;
merge_clusters (idx, idx + num_in);
hb_glyph_info_t orig_info = info[idx];
hb_glyph_info_t *pinfo = &out_info[out_len];
const unsigned char *data = (const unsigned char *) glyph_data_be;
for (unsigned int i = 0; i < num_out; i++)
{
*pinfo = orig_info;
pinfo->codepoint = (data[2*i] << 8) | data[2*i+1];
pinfo++;
}
idx += num_in;
out_len += num_out;
}
void
hb_buffer_t::replace_glyphs (unsigned int num_in,
unsigned int num_out,

View File

@ -233,14 +233,6 @@ struct hb_apply_context_t
buffer->cur().props_cache() = klass; /*XXX if has gdef? */
buffer->replace_glyph (glyph_index);
}
inline void replace_glyphs_be16 (unsigned int num_in,
unsigned int num_out,
const char *glyph_data_be,
unsigned int klass = 0) const
{
buffer->cur().props_cache() = klass; /* XXX if has gdef? */
buffer->replace_glyphs_be16 (num_in, num_out, glyph_data_be);
}
inline void replace_glyphs (unsigned int num_in,
unsigned int num_out,
hb_codepoint_t *glyph_data,