From 31d44ea77584e9118c367b8ab0569dc5d41f826a Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Wed, 10 Mar 2004 10:08:10 +0000 Subject: [PATCH] remove some no longer used functions git-svn-id: https://svn.musicpd.org/mpd/trunk@242 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/playlist.c | 11 ----------- src/playlist.h | 2 -- src/tables.c | 11 ----------- src/tables.h | 2 -- 4 files changed, 26 deletions(-) diff --git a/src/playlist.c b/src/playlist.c index 0455673d7..aa9647ec7 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -633,17 +633,6 @@ void deleteASongFromPlaylist(Song * song) { } } -void deleteSongsFromPlaylist(SongList * songList) { - ListNode * node = songList->firstNode; - Song * song; - - while(node) { - song = (Song *)node->data; - deleteASongFromPlaylist(song); - node = node->nextNode; - } -} - int stopPlaylist(FILE * fp) { DEBUG("playlist: stop\n"); if(playerStop(fp)<0) return -1; diff --git a/src/playlist.h b/src/playlist.h index 8fdca8aed..00d0f9e3c 100644 --- a/src/playlist.h +++ b/src/playlist.h @@ -67,8 +67,6 @@ int deletePlaylist(FILE * fp, char * utf8file); void deleteASongFromPlaylist(Song * song); -void deleteSongsFromPlaylist(SongList * songList); - int moveSongInPlaylist(FILE * fp, int from, int to); int swapSongsInPlaylist(FILE * fp, int song1, int song2); diff --git a/src/tables.c b/src/tables.c index ef922e1c2..748cd53a4 100644 --- a/src/tables.c +++ b/src/tables.c @@ -129,17 +129,6 @@ void removeASongFromTables(Song * song) { removeSongFromArtistTable(song); } -void removeSongsFromTables(SongList * songList) { - ListNode * node = songList->firstNode; - Song * song; - - while(node) { - song = (Song *)node->data; - removeASongFromTables(song); - node = node->nextNode; - } -} - unsigned long numberOfSongs() { return 0; } diff --git a/src/tables.h b/src/tables.h index fe99cc988..aaf05a3e9 100644 --- a/src/tables.h +++ b/src/tables.h @@ -28,8 +28,6 @@ void closeTables(); void addSongToTables(Song * song); -void removeSongsFromTables(SongList * songList); - void removeASongFromTables(Song * song); unsigned long numberOfSongs();