From aef462cd9dfcf7573e7bc6e812f0c75ddde359f6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 3 Oct 2008 11:51:53 +0200 Subject: [PATCH] support: removed unused function remove_trailing_slash() --- src/support.c | 17 ----------------- src/support.h | 1 - 2 files changed, 18 deletions(-) diff --git a/src/support.c b/src/support.c index 3ceac5a..bfcd070 100644 --- a/src/support.c +++ b/src/support.c @@ -26,23 +26,6 @@ #include #include -#define BUFSIZE 1024 - -char * -remove_trailing_slash(char *path) -{ - int len; - - if (path == NULL) - return NULL; - - len = strlen(path); - if (len > 1 && path[len - 1] == '/') - path[len - 1] = '\0'; - - return path; -} - #ifndef HAVE_STRCASESTR const char * strcasestr(const char *haystack, const char *needle) diff --git a/src/support.h b/src/support.h index 305ecbc..9edc20f 100644 --- a/src/support.h +++ b/src/support.h @@ -7,7 +7,6 @@ #include #endif -char *remove_trailing_slash(char *path); const char *strcasestr(const char *haystack, const char *needle); typedef struct { -- 2.30.2