From: Max Kellermann Date: Fri, 3 Oct 2008 09:51:53 +0000 (+0200) Subject: support: removed unused function remove_trailing_slash() X-Git-Tag: v0.12_alpha1~95 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=aef462cd9dfcf7573e7bc6e812f0c75ddde359f6;p=ncmpc.git support: removed unused function remove_trailing_slash() --- 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 {