* remove stripslashes, its going into libcitadel.
authorWilfried Göesgens <willi@citadel.org>
Tue, 26 May 2009 19:57:59 +0000 (19:57 +0000)
committerWilfried Göesgens <willi@citadel.org>
Tue, 26 May 2009 19:57:59 +0000 (19:57 +0000)
citadel/citadel_dirs.c

index 6aa74959b267d5689bca109c0fcf55db2ce03691..5d03536bc289e636f102642e0c26c9f82be7b877 100644 (file)
@@ -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", \