aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ. Alexander Treuman <jat@spatialrift.net>2007-04-25 18:47:34 +0000
committerJ. Alexander Treuman <jat@spatialrift.net>2007-04-25 18:47:34 +0000
commitf67b6b896f421a7e0a95494398d46e1cdf9bc5f0 (patch)
tree51e9dd54fd601cdc6451307b035c400bd0cfb6df
parentbee795f2c1a9c51b36061e1ae4f34f07af00eb26 (diff)
downloadmpd-f67b6b896f421a7e0a95494398d46e1cdf9bc5f0.tar.gz
mpd-f67b6b896f421a7e0a95494398d46e1cdf9bc5f0.tar.xz
mpd-f67b6b896f421a7e0a95494398d46e1cdf9bc5f0.zip
Removing references to options.updateDB in main.c.
git-svn-id: https://svn.musicpd.org/mpd/trunk@5944 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-rw-r--r--src/main.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/main.c b/src/main.c
index d86273f70..c12dfc235 100644
--- a/src/main.c
+++ b/src/main.c
@@ -66,7 +66,6 @@ typedef struct _Options {
int daemon;
int stdOutput;
int createDB;
- int updateDB;
int verbose;
} Options;
@@ -127,7 +126,6 @@ static void usage(char *argv[])
(" --no-create-db don't create database, even if it doesn't exist\n");
ERROR(" --no-daemon don't detach from console\n");
ERROR(" --stdout print messages to stdout and stderr\n");
- /*ERROR(" --update-db create database and exit\n"); */
ERROR(" --verbose verbose logging\n");
ERROR(" --version prints version information\n");
}
@@ -159,7 +157,6 @@ static void parseOptions(int argc, char **argv, Options * options)
options->daemon = 1;
options->stdOutput = 0;
options->createDB = 0;
- options->updateDB = 0;
options->kill = 0;
if (argc > 1) {
@@ -303,11 +300,6 @@ static void openDB(Options * options, char *argv0)
if (options->createDB)
exit(EXIT_SUCCESS);
}
- if (options->updateDB) {
- flushWarningLog();
- updateMp3Directory();
- exit(EXIT_SUCCESS);
- }
}
static void daemonize(Options * options)
@@ -431,7 +423,7 @@ int main(int argc, char *argv[])
initTagConfig();
initLog(options.verbose);
- if (options.createDB <= 0 && !options.updateDB)
+ if (options.createDB <= 0)
listenOnPort();
changeToUser();