From: Max Kellermann Date: Fri, 7 Nov 2008 07:28:53 +0000 (+0100) Subject: options: removed deprecated options X-Git-Tag: v0.12_alpha1~34 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ae97bd3437baba458be2eec8a57eb5eece63d005;p=ncmpc.git options: removed deprecated options "reconnect" is always enabled. "debug" code has been removed. --- diff --git a/src/options.c b/src/options.c index 8f24e10..1b745bb 100644 --- a/src/options.c +++ b/src/options.c @@ -65,7 +65,6 @@ static const arg_opt_t option_table[] = { { 'S', "no-splash", NULL, "Don't show the splash screen" }, #ifndef NDEBUG { 'K', "dump-keys", NULL, "Dump key bindings to stdout" }, - { 'D', "debug", NULL, "Enable debug output on stderr" }, #endif }; @@ -187,7 +186,7 @@ handle_option(int c, const char *arg) options.enable_mouse = false; break; case 'e': /* --exit */ - options.reconnect = false; + /* deprecated */ break; case 'p': /* --port */ options.port = atoi(arg); @@ -221,9 +220,6 @@ handle_option(int c, const char *arg) write_key_bindings(stdout, KEYDEF_WRITE_ALL | KEYDEF_COMMENT_ALL); exit(EXIT_SUCCESS); break; - case 'D': /* --debug */ - options.debug = true; - break; #endif default: fprintf(stderr,"Unknown Option %c = %s\n", c, arg); @@ -341,7 +337,6 @@ options_init(void) /* default option values */ options.list_format = g_strdup(DEFAULT_LIST_FORMAT); options.status_format = g_strdup(DEFAULT_STATUS_FORMAT); - options.reconnect = true; options.find_wrap = true; options.wide_cursor = true; options.welcome_screen_list = true; diff --git a/src/options.h b/src/options.h index 0f9fa13..791ec2f 100644 --- a/src/options.h +++ b/src/options.h @@ -26,8 +26,6 @@ typedef struct { int hide_cursor; int seek_time; int lyrics_timeout; - bool reconnect; - bool debug; bool find_wrap; bool find_show_last_pattern; bool list_wrap;