diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-11-09 19:24:21 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-11-09 19:24:21 +0000 |
commit | 4abf1b7d56425be009c8d6826a753b8682bc7c22 (patch) | |
tree | 36cbd797eafc8478439edb4b771cdfb921bda322 /src/song.c | |
parent | 6a87c49d2b619afb599a7961521f685a497ec9d4 (diff) | |
download | mpd-4abf1b7d56425be009c8d6826a753b8682bc7c22.tar.gz mpd-4abf1b7d56425be009c8d6826a753b8682bc7c22.tar.xz mpd-4abf1b7d56425be009c8d6826a753b8682bc7c22.zip |
remove all tables.... (stupid crappy code)
git-svn-id: https://svn.musicpd.org/mpd/branches/r2562-metadata-handling-rewrite@2564 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/song.c')
-rw-r--r-- | src/song.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/song.c b/src/song.c index 06dd67a89..fac103fad 100644 --- a/src/song.c +++ b/src/song.c @@ -19,13 +19,11 @@ #include "song.h" #include "ls.h" #include "directory.h" -#include "tables.h" #include "utils.h" #include "tag.h" #include "log.h" #include "path.h" #include "playlist.h" -#include "tables.h" #include "inputPlugin.h" #define SONG_KEY "key: " @@ -72,7 +70,6 @@ Song * newSong(char * utf8url, SONG_TYPE type) { freeSong(song); song = NULL; } - else addSongToTables(song); } return song; @@ -80,7 +77,6 @@ Song * newSong(char * utf8url, SONG_TYPE type) { void freeSong(Song * song) { deleteASongFromPlaylist(song); - if(song->type == SONG_TYPE_FILE) removeASongFromTables(song); free(song->utf8url); if(song->tag) freeMpdTag(song->tag); free(song); @@ -172,23 +168,19 @@ void insertSongIntoList(SongList * list, ListNode ** nextSongNode, char * key, if(!(*nextSongNode)) { insertInList(list,key,(void *)song); - addSongToTables(song); } else if(cmpRet == 0) { Song * tempSong = (Song *)((*nextSongNode)->data); if(tempSong->mtime != song->mtime) { - removeASongFromTables(tempSong); freeMpdTag(tempSong->tag); tempSong->tag = song->tag; tempSong->mtime = song->mtime; song->tag = NULL; - addSongToTables(tempSong); } freeJustSong(song); *nextSongNode = (*nextSongNode)->nextNode; } else { - addSongToTables(song); insertInListBeforeNode(list,*nextSongNode,key,(void *)song); } } @@ -272,7 +264,6 @@ int updateSongInfo(Song * song) { if(song->type == SONG_TYPE_FILE) { InputPlugin * plugin; - removeASongFromTables(song); if(song->tag) freeMpdTag(song->tag); song->tag = NULL; @@ -283,7 +274,6 @@ int updateSongInfo(Song * song) { if(song->tag) validateUtf8Tag(song->tag); } if(!song->tag || song->tag->time<0) return -1; - else addSongToTables(song); } return 0; |