diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-04-14 12:34:51 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-04-14 12:34:51 +1000 |
commit | aad2c19da7609e1a4c08ef11aab03c29a30090d8 (patch) | |
tree | 4f20d8f670dcfb28a6b1ee93209b7dce23b8ff85 /source3 | |
parent | 9d62ee2a815570b24a099b3960ed23942eebb3e7 (diff) | |
download | samba-aad2c19da7609e1a4c08ef11aab03c29a30090d8.tar.gz samba-aad2c19da7609e1a4c08ef11aab03c29a30090d8.tar.bz2 samba-aad2c19da7609e1a4c08ef11aab03c29a30090d8.zip |
s3-lib Remove unused str_ascii_charnum()
Diffstat (limited to 'source3')
-rw-r--r-- | source3/include/proto.h | 1 | ||||
-rw-r--r-- | source3/lib/util_str.c | 18 |
2 files changed, 0 insertions, 19 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index e87a09a0c9..0881edba9a 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -961,7 +961,6 @@ void strnorm(char *s, int case_default); char *push_skip_string(char *buf); char *skip_string(const char *base, size_t len, char *buf); size_t str_charnum(const char *s); -size_t str_ascii_charnum(const char *s); bool trim_char(char *s,char cfront,char cback); bool strhasupper(const char *s); bool strhaslower(const char *s); diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c index fdb06425e2..a57a53fce2 100644 --- a/source3/lib/util_str.c +++ b/source3/lib/util_str.c @@ -274,24 +274,6 @@ size_t str_charnum(const char *s) return ret; } -/** - Count the number of characters in a string. Normally this will - be the same as the number of bytes in a string for single byte strings, - but will be different for multibyte. -**/ - -size_t str_ascii_charnum(const char *s) -{ - size_t ret, converted_size; - char *tmpbuf2 = NULL; - if (!push_ascii_talloc(talloc_tos(), &tmpbuf2, s, &converted_size)) { - return 0; - } - ret = strlen(tmpbuf2); - TALLOC_FREE(tmpbuf2); - return ret; -} - bool trim_char(char *s,char cfront,char cback) { bool ret = false; |