aboutsummaryrefslogtreecommitdiffstats
path: root/src/song.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-26 09:54:25 +0200
committerMax Kellermann <max@duempel.org>2008-09-26 09:54:25 +0200
commit323e86489fb9544b3a2faa9e9004ac0b72bf01ca (patch)
tree37bcd31c5c977d1e59959ea86b47a15eae6e6a34 /src/song.c
parente2a12deead431f86c24d71579c954e00e73ed447 (diff)
downloadmpd-323e86489fb9544b3a2faa9e9004ac0b72bf01ca.tar.gz
mpd-323e86489fb9544b3a2faa9e9004ac0b72bf01ca.tar.xz
mpd-323e86489fb9544b3a2faa9e9004ac0b72bf01ca.zip
song: removed type SongList
SongList has been superseded by struct songvec.
Diffstat (limited to 'src/song.c')
-rw-r--r--src/song.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/song.c b/src/song.c
index 230388805..789e1cf1a 100644
--- a/src/song.c
+++ b/src/song.c
@@ -92,42 +92,6 @@ void freeJustSong(Song * song)
free(song);
}
-SongList *newSongList(void)
-{
- return makeList((ListFreeDataFunc *) freeSong, 0);
-}
-
-Song *addSongToList(SongList * list, const char *url, const char *utf8path,
- int songType, Directory * parentDirectory)
-{
- Song *song = NULL;
-
- switch (songType) {
- case SONG_TYPE_FILE:
- if (isMusic(utf8path, NULL, 0)) {
- song = newSong(url, songType, parentDirectory);
- }
- break;
- case SONG_TYPE_URL:
- song = newSong(url, songType, parentDirectory);
- break;
- default:
- DEBUG("addSongToList: Trying to add an invalid song type\n");
- }
-
- if (song == NULL)
- return NULL;
-
- insertInList(list, song->url, (void *)song);
-
- return song;
-}
-
-void freeSongList(SongList * list)
-{
- freeList(list);
-}
-
int updateSongInfo(Song * song)
{
if (song->type == SONG_TYPE_FILE) {