aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-09-23 20:48:33 +0200
committerMax Kellermann <max@duempel.org>2008-09-23 20:48:33 +0200
commitafe6ce7210be330eefb0e8f18f2b6787bf052087 (patch)
treeab667f14ad299f7314c91cdb9fba66c534fd4ba0
parent27fad52c6bb1d8803f400a6e95fa5c24396a1c12 (diff)
downloadmpd-afe6ce7210be330eefb0e8f18f2b6787bf052087.tar.gz
mpd-afe6ce7210be330eefb0e8f18f2b6787bf052087.tar.xz
mpd-afe6ce7210be330eefb0e8f18f2b6787bf052087.zip
directory: remove unused updateMp3Directory() function
It hasn't been used in many years commit 3a89afdd80f228139554372a83a9d74486acf691 Author: Warren Dukes <warren.dukes@gmail.com> Date: Sat Nov 20 20:28:32 2004 +0000 remove --update-db option (SVN r2719)
Diffstat (limited to '')
-rw-r--r--src/directory.c18
-rw-r--r--src/directory.h2
2 files changed, 0 insertions, 20 deletions
diff --git a/src/directory.c b/src/directory.c
index 0fec43387..14d1a5b55 100644
--- a/src/directory.c
+++ b/src/directory.c
@@ -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 *),
diff --git a/src/directory.h b/src/directory.h
index 63ff6a548..252224a6b 100644
--- a/src/directory.h
+++ b/src/directory.h
@@ -60,8 +60,6 @@ int writeDirectoryDB(void);
int readDirectoryDB(void);
-void updateMp3Directory(void);
-
Song *getSongFromDB(const char *file);
time_t getDbModTime(void);