summaryrefslogtreecommitdiff
path: root/strings/ctype-big5.c
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2016-03-23 12:44:31 +0400
committerAlexander Barkov <bar@mariadb.org>2016-03-23 12:44:31 +0400
commit0d42d4e9e02074416e0149ada0edd584cbb233a6 (patch)
tree809ae32ac937da7fd02ca822636da1112e560243 /strings/ctype-big5.c
parent1170d23ca38fb85778ba7acfcdc83ef046fbe3f3 (diff)
downloadmariadb-git-0d42d4e9e02074416e0149ada0edd584cbb233a6.tar.gz
Removing unused code in ctype-bin5.c
Diffstat (limited to 'strings/ctype-big5.c')
-rw-r--r--strings/ctype-big5.c48
1 files changed, 0 insertions, 48 deletions
diff --git a/strings/ctype-big5.c b/strings/ctype-big5.c
index 327b808309f..d549bbcc7a4 100644
--- a/strings/ctype-big5.c
+++ b/strings/ctype-big5.c
@@ -881,54 +881,6 @@ my_strnxfrm_big5(CHARSET_INFO *cs,
return my_strxfrm_pad_desc_and_reverse(cs, d0, dst, de, nweights, flags, 0);
}
-#if 0
-static int my_strcoll_big5(const uchar *s1, const uchar *s2)
-{
-
- while (*s1 && *s2)
- {
- if (*(s1+1) && *(s2+1) && isbig5code(*s1,*(s1+1)) && isbig5code(*s2, *(s2+1)))
- {
- if (*s1 != *s2 || *(s1+1) != *(s2+1))
- return ((int) big5code(*s1,*(s1+1)) -
- (int) big5code(*s2,*(s2+1)));
- s1 +=2;
- s2 +=2;
- } else if (sort_order_big5[(uchar) *s1++] != sort_order_big5[(uchar) *s2++])
- return ((int) sort_order_big5[(uchar) s1[-1]] -
- (int) sort_order_big5[(uchar) s2[-1]]);
- }
- return 0;
-}
-
-static int my_strxfrm_big5(uchar *dest, const uchar *src, int len)
-{
- uint16 e;
- uchar *d = dest;
-
- if (len < 1) return 0;
- if (!*src)
- {
- *d = '\0';
- return 0;
- }
- while (*src && (len > 1))
- {
- if (*(src+1) && isbig5code(*src, *(src+1)))
- {
- e = big5strokexfrm((uint16) big5code(*src, *(src+1)));
- *d++ = big5head(e);
- *d++ = big5tail(e);
- src +=2;
- len--;
- } else
- *d++ = sort_order_big5[(uchar) *src++];
- }
- *d = '\0';
- return (int) (d-dest);
-}
-#endif
-
static uint mbcharlen_big5(CHARSET_INFO *cs __attribute__((unused)), uint c)
{