提交 12c0875e 编写于 作者: B Behdad Esfahbod

[OT] Remove redundant check

上级 5c60b70c
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册