From b0fb09631192e681baa169221565a928862d1e2e Mon Sep 17 00:00:00 2001 From: Avuton Olrich Date: Thu, 13 Jul 2006 18:13:42 +0000 Subject: 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 --- src/path.c | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'src') 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); -} -- cgit v1.2.3