[CLEANUP] Remove unused code

Cleanup whitespace->tabs

git-svn-id: https://svn.musicpd.org/mpd/trunk@4347 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Avuton Olrich 2006-07-15 05:04:16 +00:00
parent be006b86ed
commit 3ad41fdda6
3 changed files with 7 additions and 24 deletions

View File

@ -169,7 +169,7 @@ void writeSongInfoFromList(FILE * fp, SongList * list) {
myfprintf(fp,"%s\n",SONG_END);
}
void insertSongIntoList(SongList * list, ListNode ** nextSongNode, char * key,
static void insertSongIntoList(SongList * list, ListNode ** nextSongNode, char * key,
Song * song)
{
ListNode * nodeTemp;
@ -300,18 +300,6 @@ int updateSongInfo(Song * song) {
return 0;
}
Song * songDup(Song * song) {
Song * ret = malloc(sizeof(Song));
ret->url = strdup(song->url);
ret->mtime = song->mtime;
ret->tag = mpdTagDup(song->tag);
ret->type = song->type;
ret->parentDir = song->parentDir;
return ret;
}
/* pass song = NULL to reset, we do this freeJustSong(), so that if
* we free and recreate this memory we make sure to print it correctly*/
char * getSongUrl(Song * song) {

View File

@ -69,8 +69,6 @@ void readSongInfoIntoList(FILE * fp, SongList * list,
int updateSongInfo(Song * song);
Song * songDup(Song * song);
void printSongUrl(FILE * fp, Song * song);
char * getSongUrl(Song * song);

View File

@ -31,8 +31,6 @@ Stats stats;
void initStats() {
stats.daemonStart = time(NULL);
stats.numberOfSongs = 0;
/*stats.playTime = 0;
stats.songsPlayed = 0;*/
}
int printStats(FILE * fp) {
@ -42,7 +40,6 @@ int printStats(FILE * fp) {
myfprintf(fp,"uptime: %li\n",time(NULL)-stats.daemonStart);
myfprintf(fp,"playtime: %li\n",(long)(getPlayerTotalPlayTime()+0.5));
myfprintf(fp,"db_playtime: %li\n",stats.dbPlayTime);
/*myfprintf(fp,"songs_played: %li\n",stats.songsPlayed);*/
myfprintf(fp,"db_update: %li\n",getDbModTime());
return 0;
}