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
This commit is contained in:
parent
fca9a92ba6
commit
b0fb096311
29
src/path.c
29
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user