[OT] Remove redundant check

This commit is contained in:
Behdad Esfahbod 2012-08-09 22:00:53 -04:00
parent 5c60b70c89
commit 12c0875eaf
1 changed files with 1 additions and 4 deletions

View File

@ -279,7 +279,7 @@ hb_ot_mirror_chars (hb_ot_shape_context_t *c)
for (unsigned int i = 0; i < count; i++) {
hb_codepoint_t codepoint = unicode->mirroring (c->buffer->info[i].codepoint);
if (likely (codepoint == c->buffer->info[i].codepoint))
c->buffer->info[i].mask |= rtlm_mask; /* TODO this should be moved to before setting user-feature masks */
c->buffer->info[i].mask |= rtlm_mask;
else
c->buffer->info[i].codepoint = codepoint;
}
@ -313,9 +313,6 @@ hb_ot_map_glyphs (hb_font_t *font,
{
hb_codepoint_t glyph;
if (unlikely (!buffer->len))
return;
buffer->clear_output ();
unsigned int count = buffer->len - 1;