Remove the unused status_and variable in hb-coretext.cc
This is triggering a warning in the current Clang Mac toolchain
Change-Id: I7a074fe6e1193d2addb7eb2ee8d0761aa0c5855f
Reviewed-on: https://flutter-review.googlesource.com/c/third_party/harfbuzz/+/24420
Reviewed-by: Dan Field <dnfield@google.com>
diff --git a/src/hb-coretext.cc b/src/hb-coretext.cc
index 4b6c67c..cfc99a3 100644
--- a/src/hb-coretext.cc
+++ b/src/hb-coretext.cc
@@ -897,7 +897,7 @@
DEBUG_MSG (CORETEXT, nullptr, "Num runs: %d", num_runs);
buffer->len = 0;
- uint32_t status_and = ~0, status_or = 0;
+ uint32_t status_or = 0;
CGFloat advances_so_far = 0;
/* For right-to-left runs, CoreText returns the glyphs positioned such that
* any trailing whitespace is to the left of (0,0). Adjust coordinate system
@@ -918,7 +918,6 @@
CTRunRef run = static_cast<CTRunRef>(CFArrayGetValueAtIndex (glyph_runs, i));
CTRunStatus run_status = CTRunGetStatus (run);
status_or |= run_status;
- status_and &= run_status;
DEBUG_MSG (CORETEXT, run, "CTRunStatus: %x", run_status);
CGFloat run_advance = CTRunGetTypographicBounds (run, range_all, nullptr, nullptr, nullptr);
if (HB_DIRECTION_IS_VERTICAL (buffer->props.direction))
@@ -1151,7 +1150,6 @@
{
/* Make sure all runs had the expected direction. */
HB_UNUSED bool backward = HB_DIRECTION_IS_BACKWARD (buffer->props.direction);
- assert (bool (status_and & kCTRunStatusRightToLeft) == backward);
assert (bool (status_or & kCTRunStatusRightToLeft) == backward);
}