Skip to content

Commit 0d42d4e

Browse files
author
Alexander Barkov
committed
Removing unused code in ctype-bin5.c
1 parent 1170d23 commit 0d42d4e

File tree

1 file changed

+0
-48
lines changed

1 file changed

+0
-48
lines changed

strings/ctype-big5.c

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -881,54 +881,6 @@ my_strnxfrm_big5(CHARSET_INFO *cs,
881881
return my_strxfrm_pad_desc_and_reverse(cs, d0, dst, de, nweights, flags, 0);
882882
}
883883

884-
#if 0
885-
static int my_strcoll_big5(const uchar *s1, const uchar *s2)
886-
{
887-
888-
while (*s1 && *s2)
889-
{
890-
if (*(s1+1) && *(s2+1) && isbig5code(*s1,*(s1+1)) && isbig5code(*s2, *(s2+1)))
891-
{
892-
if (*s1 != *s2 || *(s1+1) != *(s2+1))
893-
return ((int) big5code(*s1,*(s1+1)) -
894-
(int) big5code(*s2,*(s2+1)));
895-
s1 +=2;
896-
s2 +=2;
897-
} else if (sort_order_big5[(uchar) *s1++] != sort_order_big5[(uchar) *s2++])
898-
return ((int) sort_order_big5[(uchar) s1[-1]] -
899-
(int) sort_order_big5[(uchar) s2[-1]]);
900-
}
901-
return 0;
902-
}
903-
904-
static int my_strxfrm_big5(uchar *dest, const uchar *src, int len)
905-
{
906-
uint16 e;
907-
uchar *d = dest;
908-
909-
if (len < 1) return 0;
910-
if (!*src)
911-
{
912-
*d = '\0';
913-
return 0;
914-
}
915-
while (*src && (len > 1))
916-
{
917-
if (*(src+1) && isbig5code(*src, *(src+1)))
918-
{
919-
e = big5strokexfrm((uint16) big5code(*src, *(src+1)));
920-
*d++ = big5head(e);
921-
*d++ = big5tail(e);
922-
src +=2;
923-
len--;
924-
} else
925-
*d++ = sort_order_big5[(uchar) *src++];
926-
}
927-
*d = '\0';
928-
return (int) (d-dest);
929-
}
930-
#endif
931-
932884

933885
static uint mbcharlen_big5(CHARSET_INFO *cs __attribute__((unused)), uint c)
934886
{

0 commit comments

Comments
 (0)