aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-11-07 08:28:53 +0100
committerMax Kellermann <max@duempel.org>2008-11-07 08:28:53 +0100
commitae97bd3437baba458be2eec8a57eb5eece63d005 (patch)
tree402f687f8a78683d727f63ac07bf04666e3999b5
parentab3876d4c059d4a076c49d1700067fe7b3696d54 (diff)
downloadmpd-ae97bd3437baba458be2eec8a57eb5eece63d005.tar.gz
mpd-ae97bd3437baba458be2eec8a57eb5eece63d005.tar.xz
mpd-ae97bd3437baba458be2eec8a57eb5eece63d005.zip
options: removed deprecated options
"reconnect" is always enabled. "debug" code has been removed.
-rw-r--r--src/options.c7
-rw-r--r--src/options.h2
2 files changed, 1 insertions, 8 deletions
diff --git a/src/options.c b/src/options.c
index 8f24e107a..1b745bb76 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 0f9fa13c1..791ec2f09 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;