aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-22 17:23:11 +0200
committerMax Kellermann <max@duempel.org>2008-10-22 17:23:11 +0200
commit1da921f03cc3063dc309d0e1afdcd41e201f55a2 (patch)
tree9662e1635b2404a429fc0b725716ac7efa40d9c5 /src/playlist.c
parentac853b6165f8c9b0caa414d4c7182715e28152f6 (diff)
downloadmpd-1da921f03cc3063dc309d0e1afdcd41e201f55a2.tar.gz
mpd-1da921f03cc3063dc309d0e1afdcd41e201f55a2.tar.xz
mpd-1da921f03cc3063dc309d0e1afdcd41e201f55a2.zip
stored_playlist: moved functions from playlist.c
The two functions clearStoredPlaylist() and addToStoredPlaylist() don't belong into playlist.c. clearStoredPlaylist() was a wrapper for spl_clear(), and is converted into a CPP macro for now.
Diffstat (limited to 'src/playlist.c')
-rw-r--r--src/playlist.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/playlist.c b/src/playlist.c
index 9244b8554..c8974595d 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -218,11 +218,6 @@ void clearPlaylist(void)
incrPlaylistVersion();
}
-int clearStoredPlaylist(const char *utf8file)
-{
- return spl_clear(utf8file);
-}
-
void showPlaylist(struct client *client)
{
int i;
@@ -575,29 +570,6 @@ enum playlist_result addToPlaylist(const char *url, int *added_id)
return addSongToPlaylist(song, added_id);
}
-int addToStoredPlaylist(const char *url, const char *utf8file)
-{
- struct song *song;
-
- DEBUG("add to stored playlist: %s\n", url);
-
- song = db_get_song(url);
- if (song)
- return spl_append_song(utf8file, song);
-
- if (!isValidRemoteUtf8Url(url))
- return ACK_ERROR_NO_EXIST;
-
- song = song_remote_new(url);
- if (song) {
- int ret = spl_append_song(utf8file, song);
- song_free(song);
- return ret;
- }
-
- return ACK_ERROR_NO_EXIST;
-}
-
enum playlist_result
addSongToPlaylist(struct song *song, int *added_id)
{