From f67b6b896f421a7e0a95494398d46e1cdf9bc5f0 Mon Sep 17 00:00:00 2001 From: "J. Alexander Treuman" Date: Wed, 25 Apr 2007 18:47:34 +0000 Subject: Removing references to options.updateDB in main.c. git-svn-id: https://svn.musicpd.org/mpd/trunk@5944 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/main.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src') 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(); -- cgit v1.2.3