未验证 提交 82e6d689 编写于 作者: C Chris Bracken 提交者: GitHub

Eliminate unused write to local (#8541)

In GraphemeBreak::isGraphemeBreak() p0 is never read and
tailoredGraphemeClusterBreak() has no side-effects, so the call can be
eliminated.
上级 f53e477a
......@@ -150,7 +150,6 @@ bool GraphemeBreak::isGraphemeBreak(const float* advances,
if (p0 == U_GCB_EXTEND && offset_backback > start) {
// skip over emoji variation selector
U16_PREV(buf, start, offset_backback, c0);
p0 = tailoredGraphemeClusterBreak(c0);
}
if (isEmojiBase(c0)) {
return false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册