From f3f51871ff50d989741a66bd618d19dce38d2a0d Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Wed, 10 Apr 2019 18:40:59 -0700 Subject: [PATCH] Eliminate unused write to local In GraphemeBreak::isGraphemeBreak() p0 is never read and tailoredGraphemeClusterBreak() has no side-effects, so the call can be eliminated. --- third_party/txt/src/minikin/GraphemeBreak.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/third_party/txt/src/minikin/GraphemeBreak.cpp b/third_party/txt/src/minikin/GraphemeBreak.cpp index 7e907352537c9..b711fae9aab7b 100644 --- a/third_party/txt/src/minikin/GraphemeBreak.cpp +++ b/third_party/txt/src/minikin/GraphemeBreak.cpp @@ -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;