From 12c0875eafa4bd92db650e5acca046d99594d1e6 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 9 Aug 2012 22:00:53 -0400 Subject: [PATCH] [OT] Remove redundant check --- src/hb-ot-shape.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/hb-ot-shape.cc b/src/hb-ot-shape.cc index 0fab82b11..b4745c5a1 100644 --- a/src/hb-ot-shape.cc +++ b/src/hb-ot-shape.cc @@ -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;