directory: remove unused updateMp3Directory() function

It hasn't been used in many years

  commit 3a89afdd80
  Author: Warren Dukes <warren.dukes@gmail.com>
  Date:   Sat Nov 20 20:28:32 2004 +0000

      remove --update-db option

      (SVN r2719)
This commit is contained in:
Eric Wong 2008-09-23 20:48:33 +02:00 committed by Max Kellermann
parent 27fad52c6b
commit afe6ce7210
2 changed files with 0 additions and 20 deletions

View File

@ -1135,24 +1135,6 @@ int readDirectoryDB(void)
return 0;
}
void updateMp3Directory(void)
{
switch (updateDirectory(mp3rootDirectory)) {
case 0:
/* nothing updated */
return;
case 1:
if (writeDirectoryDB() < 0)
exit(EXIT_FAILURE);
break;
default:
/* something was updated and db should be written */
FATAL("problems updating music db\n");
}
return;
}
static int traverseAllInSubDirectory(Directory * directory,
int (*forEachSong) (Song *, void *),
int (*forEachDir) (Directory *, void *),

View File

@ -60,8 +60,6 @@ int writeDirectoryDB(void);
int readDirectoryDB(void);
void updateMp3Directory(void);
Song *getSongFromDB(const char *file);
time_t getDbModTime(void);