1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r11296: removing unused variable and ifdef'd out code

(This used to be commit 88a33c4cf8)
This commit is contained in:
Gerald Carter 2005-10-25 14:56:22 +00:00 committed by Gerald (Jerry) Carter
parent bac6524af1
commit 2f25efcbaf

View File

@ -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;
}