aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAvuton Olrich <avuton@gmail.com>2006-07-13 18:13:42 +0000
committerAvuton Olrich <avuton@gmail.com>2006-07-13 18:13:42 +0000
commitb0fb09631192e681baa169221565a928862d1e2e (patch)
treed37f04dab3a67506fea82bce924ea6766ddfe57a /src
parentfca9a92ba6310a069bed10fd8d4620a93a399b15 (diff)
downloadmpd-b0fb09631192e681baa169221565a928862d1e2e.tar.gz
mpd-b0fb09631192e681baa169221565a928862d1e2e.tar.xz
mpd-b0fb09631192e681baa169221565a928862d1e2e.zip
Remove (now) unused code. Hasn't been used since revision 3026.
git-svn-id: https://svn.musicpd.org/mpd/trunk@4312 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/path.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/path.c b/src/path.c
index 0fc5a1eb7..2c162e3a5 100644
--- a/src/path.c
+++ b/src/path.c
@@ -275,32 +275,3 @@ char * sanitizePathDup(char * path) {
return realloc(ret,len+1);
}
-char * prependCwdToPathDup(char * path) {
- int len = MAXPATHLEN+1;
- char * ret = malloc(len);
-
- memset(ret,0,len);
-
- len = 0;
-
- if(path[0]=='/') {
- strncpy(ret,path,MAXPATHLEN);
- len = strlen(ret);
- }
- else {
- getcwd(ret,MAXPATHLEN);
- len = strlen(ret);
- if(ret[len-1]!='/') {
- strncat(ret,"/",MAXPATHLEN-len);
- len = strlen(ret);
- }
- strncat(ret,path,MAXPATHLEN-len);
- len = strlen(ret);
- }
- if(ret[len-1]!='/') {
- strncat(ret,"/",MAXPATHLEN-len);
- len = strlen(ret);
- }
-
- return realloc(ret,len+1);
-}