aboutsummaryrefslogtreecommitdiffstats
path: root/src/path.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-20 22:18:40 +0200
committerMax Kellermann <max@duempel.org>2008-10-20 22:18:40 +0200
commit49260e6db20aa865e485a02fae5c0249d1df0d8a (patch)
tree03446e4b7e117e87d048d2e36ad199b68cefe752 /src/path.h
parentba96920a52bbd2208aa1f3b284edc864e26198ce (diff)
downloadmpd-49260e6db20aa865e485a02fae5c0249d1df0d8a.tar.gz
mpd-49260e6db20aa865e485a02fae5c0249d1df0d8a.tar.xz
mpd-49260e6db20aa865e485a02fae5c0249d1df0d8a.zip
path: replaced parent_path() with g_path_get_dirname()
Again, GLib's version is more robust than ours.
Diffstat (limited to 'src/path.h')
-rw-r--r--src/path.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/path.h b/src/path.h
index 62e7acc03..739985a0c 100644
--- a/src/path.h
+++ b/src/path.h
@@ -58,16 +58,6 @@ char *pfx_dir(char *dst,
/* relative playlist path to absolute playlist path */
char *rpp2app_r(char *dst, const char *rel_path);
-/*
- * parent_path - saner version of dirname(3) with slightly different semantics
- * - we will return "" instead of "." or "/" if we have no parent
- * this is because we only deal with internal paths
- * - we always skip over redundant slashes in the middle, if there are any
- * - we will never get meaningful paths with trailing slashes in our callers
- * (set handle_trailing_slashes to true if we do)
- */
-char *parent_path(char *path_max_tmp, const char *path);
-
/* strips extra "///" and leading "/" and trailing "/" */
char *sanitizePathDup(const char *path);