From 93598e28f48a6a2da332287a3b8c0966a99e66d9 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 23 Oct 2008 09:54:32 +0200 Subject: stored_playlist: renamed and moved spl_delete() to stored_playlist.c The function deletePlaylist() shouldn't be in playlist.c. --- src/playlist.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/playlist.c') 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; -- cgit v1.2.3