aboutsummaryrefslogtreecommitdiff
path: root/src/playlist.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-23 09:54:32 +0200
committerMax Kellermann <max@duempel.org>2008-10-23 09:54:32 +0200
commit93598e28f48a6a2da332287a3b8c0966a99e66d9 (patch)
treec8c5a6b691d7c1b99f0555332ba344b485367f73 /src/playlist.c
parent39f0c41fbf94f2ac078478867ff95a92a62480fb (diff)
stored_playlist: renamed and moved spl_delete() to stored_playlist.c
The function deletePlaylist() shouldn't be in playlist.c.
Diffstat (limited to 'src/playlist.c')
-rw-r--r--src/playlist.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/playlist.c b/src/playlist.c
index 4b7ea607..0baebc6e 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -1185,20 +1185,6 @@ void shufflePlaylist(void)
}
}
-enum playlist_result deletePlaylist(const char *utf8file)
-{
- char path_max_tmp[MPD_PATH_MAX];
-
- utf8_to_fs_playlist_path(path_max_tmp, utf8file);
-
- if (unlink(path_max_tmp) < 0)
- return errno == ENOENT
- ? PLAYLIST_RESULT_NO_SUCH_LIST
- : PLAYLIST_RESULT_ERRNO;
-
- return PLAYLIST_RESULT_SUCCESS;
-}
-
enum playlist_result savePlaylist(const char *utf8file)
{
FILE *fp;