diff options
author | Max Kellermann <max@duempel.org> | 2008-10-03 11:51:53 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-03 11:51:53 +0200 |
commit | aef462cd9dfcf7573e7bc6e812f0c75ddde359f6 (patch) | |
tree | dfaa9db384f0ce4e1f7f0fa39c9c766dda5dffc6 /src | |
parent | 44ecb3b869a8106475b984b4a0d212f9b3b3a219 (diff) | |
download | mpd-aef462cd9dfcf7573e7bc6e812f0c75ddde359f6.tar.gz mpd-aef462cd9dfcf7573e7bc6e812f0c75ddde359f6.tar.xz mpd-aef462cd9dfcf7573e7bc6e812f0c75ddde359f6.zip |
support: removed unused function remove_trailing_slash()
Diffstat (limited to 'src')
-rw-r--r-- | src/support.c | 17 | ||||
-rw-r--r-- | src/support.h | 1 |
2 files changed, 0 insertions, 18 deletions
diff --git a/src/support.c b/src/support.c index 3ceac5a3a..bfcd07025 100644 --- a/src/support.c +++ b/src/support.c @@ -26,23 +26,6 @@ #include <ctype.h> #include <string.h> -#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 305ecbcf1..9edc20f35 100644 --- a/src/support.h +++ b/src/support.h @@ -7,7 +7,6 @@ #include <libgen.h> #endif -char *remove_trailing_slash(char *path); const char *strcasestr(const char *haystack, const char *needle); typedef struct { |