diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2019-04-03 19:46:34 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2019-04-03 19:46:34 +0300 |
commit | 1f3bcff1f2d7ba50fc8e8cb2b608b8eaaec3d583 (patch) | |
tree | ad3703dfd950f929afedb8b2b4f161fb8afcf0cb /strings | |
parent | fa147843018ba14136c0a65a2cfcf53af2938958 (diff) | |
download | mariadb-git-1f3bcff1f2d7ba50fc8e8cb2b608b8eaaec3d583.tar.gz |
Remove unused declarations
Diffstat (limited to 'strings')
-rw-r--r-- | strings/ctype-utf8.c | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/strings/ctype-utf8.c b/strings/ctype-utf8.c index efd862f5a1c..e2e3d96386e 100644 --- a/strings/ctype-utf8.c +++ b/strings/ctype-utf8.c @@ -1,5 +1,5 @@ /* Copyright (c) 2000, 2013, Oracle and/or its affiliates. - Copyright (c) 2009, 2017, MariaDB + Copyright (c) 2009, 2019, MariaDB This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public @@ -4887,16 +4887,6 @@ static const uchar to_upper_utf8[] = { 240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255 }; -static inline int bincmp(const uchar *s, const uchar *se, - const uchar *t, const uchar *te) -{ - int slen= (int) (se-s), tlen= (int) (te-t); - int len=MY_MIN(slen,tlen); - int cmp= memcmp(s,t,len); - return cmp ? cmp : slen-tlen; -} - - static int my_utf8_uni(CHARSET_INFO *cs __attribute__((unused)), my_wc_t * pwc, const uchar *s, const uchar *e) { @@ -5059,14 +5049,6 @@ my_toupper_utf8mb3(MY_UNICASE_INFO *uni_plane, my_wc_t *wc) } -static inline void -my_tosort_utf8mb3(MY_UNICASE_INFO *uni_plane, my_wc_t *wc) -{ - MY_UNICASE_CHARACTER *page; - if ((page= uni_plane->page[(*wc >> 8) & 0xFF])) - *wc= page[*wc & 0xFF].sort; -} - static size_t my_caseup_utf8(CHARSET_INFO *cs, const char *src, size_t srclen, char *dst, size_t dstlen) { @@ -7306,17 +7288,6 @@ static uchar to_upper_utf8mb4[]= }; -static inline int -bincmp_utf8mb4(const uchar *s, const uchar *se, - const uchar *t, const uchar *te) -{ - int slen= (int) (se - s), tlen= (int) (te - t); - int len= MY_MIN(slen, tlen); - int cmp= memcmp(s, t, len); - return cmp ? cmp : slen - tlen; -} - - static int my_mb_wc_utf8mb4(CHARSET_INFO *cs __attribute__((unused)), my_wc_t * pwc, const uchar *s, const uchar *e) |