aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-03 11:51:53 +0200
committerMax Kellermann <max@duempel.org>2008-10-03 11:51:53 +0200
commitaef462cd9dfcf7573e7bc6e812f0c75ddde359f6 (patch)
treedfaa9db384f0ce4e1f7f0fa39c9c766dda5dffc6 /src
parent44ecb3b869a8106475b984b4a0d212f9b3b3a219 (diff)
downloadmpd-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.c17
-rw-r--r--src/support.h1
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 {