From 2f25efcbaf82c2d97b4aad0a59198e388b3ae654 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Tue, 25 Oct 2005 14:56:22 +0000 Subject: r11296: removing unused variable and ifdef'd out code (This used to be commit 88a33c4cf87ada17637579d9261471c219e88de0) --- source3/param/loadparm.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'source3') diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 6ad1ace755..ed392ef137 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -2455,7 +2455,6 @@ static int add_a_service(const service *pservice, const char *name) static char *canonicalize_servicename(const char *src) { static fstring canon; /* is fstring large enough? */ - int dst_idx = 0; if ( !src ) { DEBUG(0,("canonicalize_servicename: NULL source name!\n")); @@ -2465,19 +2464,6 @@ static char *canonicalize_servicename(const char *src) fstrcpy( canon, src ); strupper_m( canon ); -#if 0 - for (; *src != '\0'; src += next_mb_char_size(src)) { - if (isspace(*src)) { - continue; - } - if (dst_idx == sizeof(canon) - 1) { - return NULL; - } - canon[dst_idx++] = toupper(*src); - } - canon[dst_idx] = '\0'; -#endif - return canon; } -- cgit