From aad2c19da7609e1a4c08ef11aab03c29a30090d8 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 14 Apr 2011 12:34:51 +1000 Subject: s3-lib Remove unused str_ascii_charnum() --- source3/lib/util_str.c | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'source3/lib') 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; -- cgit