forked from firka/flutter
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user