=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/less/charset.c,v retrieving revision 1.25 retrieving revision 1.26 diff -u -r1.25 -r1.26 --- src/usr.bin/less/charset.c 2019/08/31 13:44:29 1.25 +++ src/usr.bin/less/charset.c 2019/09/02 14:07:45 1.26 @@ -474,13 +474,6 @@ }; /* - * Special pairs, not ranges. - */ -static struct wchar_range comb_table[] = { - {0x0644, 0x0622}, {0x0644, 0x0623}, {0x0644, 0x0625}, {0x0644, 0x0627}, -}; - -/* * Characters with general category values * Cc: Other, Control * Cf: Other, Format @@ -825,22 +818,4 @@ { return (is_in_table(ch, wide_table, (sizeof (wide_table) / sizeof (*wide_table)))); -} - -/* - * Is a character a UTF-8 combining character? - * A combining char acts like an ordinary char, but if it follows - * a specific char (not any char), the two combine into one glyph. - */ -int -is_combining_char(LWCHAR ch1, LWCHAR ch2) -{ - /* The table is small; use linear search. */ - int i; - for (i = 0; i < sizeof (comb_table) / sizeof (*comb_table); i++) { - if (ch1 == comb_table[i].first && - ch2 == comb_table[i].last) - return (1); - } - return (0); }