s3-lib Remove unused str_ascii_charnum()
authorAndrew Bartlett <abartlet@samba.org>
Thu, 14 Apr 2011 02:34:51 +0000 (12:34 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 14 Apr 2011 02:34:51 +0000 (12:34 +1000)
source3/include/proto.h
source3/lib/util_str.c

index e87a09a0c9b6fa2bc0c21d27b5b1cfe0f1fd3f2a..0881edba9a71cef364d06896c965bc2b9a8ce8a9 100644 (file)
@@ -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);
index fdb06425e2e51639128a519f8b7ec198d542e952..a57a53fce29983df05baf112c7009416256dbbc6 100644 (file)
@@ -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;