aboutsummaryrefslogtreecommitdiffstats
path: root/src/support.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/support.c')
-rw-r--r--src/support.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/support.c b/src/support.c
index ca0266c1b..3ceac5a3a 100644
--- a/src/support.c
+++ b/src/support.c
@@ -43,28 +43,6 @@ remove_trailing_slash(char *path)
return path;
}
-#ifndef HAVE_BASENAME
-char *
-basename(char *path)
-{
- char *end;
-
- assert(path != NULL);
-
- path = remove_trailing_slash(path);
- end = path + strlen(path);
-
- while (end > path && *end != '/')
- end--;
-
- if (*end == '/' && end != path)
- return end+1;
-
- return path;
-}
-#endif /* HAVE_BASENAME */
-
-
#ifndef HAVE_STRCASESTR
const char *
strcasestr(const char *haystack, const char *needle)