From: Wilfried Göesgens Date: Tue, 26 May 2009 19:57:59 +0000 (+0000) Subject: * remove stripslashes, its going into libcitadel. X-Git-Tag: v7.86~1128 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=a473a214c4c3b00b716e6fc5c71200472e109c68;p=citadel.git * remove stripslashes, its going into libcitadel. --- diff --git a/citadel/citadel_dirs.c b/citadel/citadel_dirs.c index 6aa74959b..5d03536bc 100644 --- a/citadel/citadel_dirs.c +++ b/citadel/citadel_dirs.c @@ -74,32 +74,6 @@ char file_dspam_log[PATH_MAX] = ""; -void StripSlashes(char *Dir, int TrailingSlash) -{ - char *a, *b; - - a = b = Dir; - - while (!IsEmptyStr(a)) { - if (*a == '/') { - while (*a == '/') - a++; - *b = '/'; - b++; - } - else { - *b = *a; - b++; a++; - } - } - if ((TrailingSlash) && (*(b - 1) != '/')){ - *b = '/'; - b++; - } - *b = '\0'; - -} - #define COMPUTE_DIRECTORY(SUBDIR) memcpy(dirbuffer,SUBDIR, sizeof dirbuffer);\ snprintf(SUBDIR,sizeof SUBDIR, "%s%s%s%s%s%s%s", \