diff options
author | Avuton Olrich <avuton@gmail.com> | 2006-07-13 18:13:42 +0000 |
---|---|---|
committer | Avuton Olrich <avuton@gmail.com> | 2006-07-13 18:13:42 +0000 |
commit | b0fb09631192e681baa169221565a928862d1e2e (patch) | |
tree | d37f04dab3a67506fea82bce924ea6766ddfe57a /src | |
parent | fca9a92ba6310a069bed10fd8d4620a93a399b15 (diff) |
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 'src')
-rw-r--r-- | src/path.c | 29 |
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); -} |