summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c14
1 files changed, 0 insertions, 14 deletions
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;
}