aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-09-20 16:14:27 -0700
committerEric Wong <normalperson@yhbt.net>2008-09-20 16:14:27 -0700
commit8f475cc0ff4640f60c139e037b38d5c0225e1478 (patch)
treec5b3102b26fbedd021c9e7ad23a7cebec2e1b70c /src
parent95817fee8a01f1cdef2f0fb66d351dd031b91c7e (diff)
downloadmpd-8f475cc0ff4640f60c139e037b38d5c0225e1478.tar.gz
mpd-8f475cc0ff4640f60c139e037b38d5c0225e1478.tar.xz
mpd-8f475cc0ff4640f60c139e037b38d5c0225e1478.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 'src')
-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 dbf578857..404afd1a9 100644
--- a/src/directory.c
+++ b/src/directory.c
@@ -1146,24 +1146,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 9553095b3..e881f7a04 100644
--- a/src/directory.h
+++ b/src/directory.h
@@ -55,8 +55,6 @@ int writeDirectoryDB(void);
int readDirectoryDB(void);
-void updateMp3Directory(void);
-
Song *getSongFromDB(const char *file);
time_t getDbModTime(void);