From 8fc701dd7634e22961e53b1eff9096b5404ac192 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 20 Aug 2012 11:18:37 +1000 Subject: [PATCH] Deprecate the opt_fail_pause parameter, leaving a null placeholder for existing configurations. --- cgminer.c | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/cgminer.c b/cgminer.c index 2fa1f96e..aa2fb42b 100644 --- a/cgminer.c +++ b/cgminer.c @@ -92,7 +92,6 @@ bool opt_quiet; static bool opt_realquiet; bool opt_loginput; const int opt_cutofftemp = 95; -static int opt_fail_pause = 5; int opt_log_interval = 5; static int opt_queue = 1; int opt_scantime = 60; @@ -961,8 +960,8 @@ static struct opt_table opt_config_table[] = { set_null, NULL, NULL, opt_hidden), OPT_WITH_ARG("--retry-pause|-R", - set_int_0_to_9999, opt_show_intval, &opt_fail_pause, - "Number of seconds to pause, between retries"), + set_null, NULL, NULL, + opt_hidden), OPT_WITH_ARG("--rotate", set_rotate, opt_show_intval, &opt_rotate_period, "Change multipool strategy from failover to regularly rotate at N minutes"), @@ -3493,8 +3492,8 @@ static void set_options(void) clear_logwin(); retry: wlogprint("[Q]ueue: %d\n[S]cantime: %d\n[E]xpiry: %d\n" - "[P]ause: %d\n[W]rite config file\n[C]gminer restart\n", - opt_queue, opt_scantime, opt_expiry, opt_fail_pause); + "[W]rite config file\n[C]gminer restart\n", + opt_queue, opt_scantime, opt_expiry); wlogprint("Select an option or any other key to return\n"); input = getch(); @@ -3522,14 +3521,6 @@ retry: } opt_expiry = selected; goto retry; - } else if (!strncasecmp(&input, "p", 1)) { - selected = curses_int("Seconds to pause before network retries"); - if (selected < 1 || selected > 9999) { - wlogprint("Invalid selection\n"); - goto retry; - } - opt_fail_pause = selected; - goto retry; } else if (!strncasecmp(&input, "w", 1)) { FILE *fcfg; char *str, filename[PATH_MAX], prompt[PATH_MAX + 50];