Eliminate unused write to local (flutter/engine#8541)

In GraphemeBreak::isGraphemeBreak() p0 is never read and
tailoredGraphemeClusterBreak() has no side-effects, so the call can be
eliminated.
This commit is contained in:
Chris Bracken
2019-04-11 09:59:20 -07:00
committed by GitHub
parent d467c50378
commit e1ab77f645

View File

@@ -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;