aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 {