From: Holger Schemel Date: Thu, 31 Mar 2016 18:37:15 +0000 (+0200) Subject: removed unused (obsolete) option to specify X11 server display X-Git-Tag: 4.0.0.0-rc1~26 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=cacc5129ff29981490cb53d43aeca8264b7f176c;p=rocksndiamonds.git removed unused (obsolete) option to specify X11 server display --- diff --git a/src/libgame/misc.c b/src/libgame/misc.c index ff86123d..297d5dce 100644 --- a/src/libgame/misc.c +++ b/src/libgame/misc.c @@ -939,7 +939,6 @@ void GetOptions(int argc, char *argv[], rw_base_path = getProgramMainDataPath(); /* initialize global program options */ - options.display_name = NULL; options.server_host = NULL; options.server_port = 0; @@ -1010,15 +1009,6 @@ void GetOptions(int argc, char *argv[], exit(0); } - else if (strncmp(option, "-display", option_len) == 0) - { - if (option_arg == NULL) - Error(ERR_EXIT_HELP, "option '%s' requires an argument", option_str); - - options.display_name = option_arg; - if (option_arg == next_option) - options_left++; - } else if (strncmp(option, "-basepath", option_len) == 0) { if (option_arg == NULL) diff --git a/src/libgame/system.h b/src/libgame/system.h index 98aa9c73..11e28ad6 100644 --- a/src/libgame/system.h +++ b/src/libgame/system.h @@ -709,7 +709,6 @@ struct ProgramInfo struct OptionInfo { - char *display_name; char *server_host; int server_port; diff --git a/src/main.c b/src/main.c index 213ba4a0..e820719a 100644 --- a/src/main.c +++ b/src/main.c @@ -5605,7 +5605,6 @@ static void print_usage() "Usage: %s [OPTION]... [HOSTNAME [PORT]]\n" "\n" "Options:\n" - " -d, --display HOSTNAME[:SCREEN] specify X server display\n" " -b, --basepath DIRECTORY alternative base DIRECTORY\n" " -l, --level DIRECTORY alternative level DIRECTORY\n" " -g, --graphics DIRECTORY alternative graphics DIRECTORY\n"