diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-02-09 12:46:38 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-02-10 16:45:13 +1100 |
commit | fc5a214d71ac46d031098afb3b8ccf2de472ef94 (patch) | |
tree | 1f24b6661b299d4e93ebfb0324cdc13a150d73d9 /lib/util/charset | |
parent | ac57defdb4171c5b8266083f18ce89fecf0a4032 (diff) | |
download | samba-fc5a214d71ac46d031098afb3b8ccf2de472ef94.tar.gz samba-fc5a214d71ac46d031098afb3b8ccf2de472ef94.tar.bz2 samba-fc5a214d71ac46d031098afb3b8ccf2de472ef94.zip |
charset: Remove unused strcmp_w()
Found by callcatcher.
Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html
Andrew Bartlett
Diffstat (limited to 'lib/util/charset')
-rw-r--r-- | lib/util/charset/charset.h | 1 | ||||
-rw-r--r-- | lib/util/charset/util_unistr_w.c | 14 |
2 files changed, 0 insertions, 15 deletions
diff --git a/lib/util/charset/charset.h b/lib/util/charset/charset.h index a2c4a82a73..e4297e4f3c 100644 --- a/lib/util/charset/charset.h +++ b/lib/util/charset/charset.h @@ -236,7 +236,6 @@ smb_ucs2_t *strnrchr_w(const smb_ucs2_t *s, smb_ucs2_t c, unsigned int n); smb_ucs2_t *strstr_w(const smb_ucs2_t *s, const smb_ucs2_t *ins); bool strlower_w(smb_ucs2_t *s); bool strupper_w(smb_ucs2_t *s); -int strcmp_w(const smb_ucs2_t *a, const smb_ucs2_t *b); int strcasecmp_w(const smb_ucs2_t *a, const smb_ucs2_t *b); int strncasecmp_w(const smb_ucs2_t *a, const smb_ucs2_t *b, size_t len); int strcmp_wa(const smb_ucs2_t *a, const char *b); diff --git a/lib/util/charset/util_unistr_w.c b/lib/util/charset/util_unistr_w.c index 72bd19855c..52252676bb 100644 --- a/lib/util/charset/util_unistr_w.c +++ b/lib/util/charset/util_unistr_w.c @@ -207,20 +207,6 @@ bool strupper_w(smb_ucs2_t *s) return ret; } -int strcmp_w(const smb_ucs2_t *a, const smb_ucs2_t *b) -{ - smb_ucs2_t cpa, cpb; - - while ((*(COPY_UCS2_CHAR(&cpb,b))) && (*(COPY_UCS2_CHAR(&cpa,a)) == cpb)) { - a++; - b++; - } - return (*(COPY_UCS2_CHAR(&cpa,a)) - *(COPY_UCS2_CHAR(&cpb,b))); - /* warning: if *a != *b and both are not 0 we return a random - greater or lesser than 0 number not realted to which - string is longer */ -} - static int strncmp_w(const smb_ucs2_t *a, const smb_ucs2_t *b, size_t len) { smb_ucs2_t cpa, cpb; |