From a473a214c4c3b00b716e6fc5c71200472e109c68 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Tue, 26 May 2009 19:57:59 +0000 Subject: [PATCH] * remove stripslashes, its going into libcitadel. --- citadel/citadel_dirs.c | 26 -------------------------- 1 file changed, 26 deletions(-) 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", \ -- 2.39.2