Remove unnecessary extra test for combinig characters

There are not combining characters with a non-zero combining class that
are not in the marks category.
This commit is contained in:
Kovid Goyal
2018-01-17 21:56:30 +05:30
parent 9125c00f96
commit 33ed873997

View File

@@ -5,7 +5,7 @@
static inline bool
is_combining_char(uint32_t ch) {
return uc_combining_class(ch) != UC_CCC_NR || uc_is_general_category_withtable(ch, UC_CATEGORY_MASK_Mc | UC_CATEGORY_MASK_Me | UC_CATEGORY_MASK_Mn);
return uc_is_general_category_withtable(ch, UC_CATEGORY_MASK_Mc | UC_CATEGORY_MASK_Me | UC_CATEGORY_MASK_Mn);
}