diff options
author | Max Kellermann <max@duempel.org> | 2008-10-23 09:54:32 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-23 09:54:32 +0200 |
commit | 93598e28f48a6a2da332287a3b8c0966a99e66d9 (patch) | |
tree | c8c5a6b691d7c1b99f0555332ba344b485367f73 /src/playlist.c | |
parent | 39f0c41fbf94f2ac078478867ff95a92a62480fb (diff) | |
download | mpd-93598e28f48a6a2da332287a3b8c0966a99e66d9.tar.gz mpd-93598e28f48a6a2da332287a3b8c0966a99e66d9.tar.xz mpd-93598e28f48a6a2da332287a3b8c0966a99e66d9.zip |
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.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/playlist.c b/src/playlist.c index 4b7ea6074..0baebc6ea 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; |