Issue #325 Part 6: Remove non-Intl legacy code paths from line-breaker code.

pull/1/head
wolfbeast 4 years ago committed by Roy Tam
parent d1c16b1326
commit 3f6fb7bb4a
  1. 2
      intl/lwbrk/nsJISx4051LineBreaker.cpp

@ -553,10 +553,8 @@ GetClass(uint32_t u)
/* ZWJ = 42, [ZWJ]*/ CLASS_CHARACTER
};
#if ENABLE_INTL_API
static_assert(U_LB_COUNT == mozilla::ArrayLength(sUnicodeLineBreakToClass),
"Gecko vs ICU LineBreak class mismatch");
#endif
auto cls = mozilla::unicode::GetLineBreakClass(u);
MOZ_ASSERT(cls < mozilla::ArrayLength(sUnicodeLineBreakToClass));

Loading…
Cancel
Save