Browse Source

Remove long-deprecated and non-functional --enable-cpu option

Luke Dashjr 12 years ago
parent
commit
051a881ea3
3 changed files with 0 additions and 7 deletions
  1. 0 1
      driver-cpu.c
  2. 0 1
      driver-cpu.h
  3. 0 5
      miner.c

+ 0 - 1
driver-cpu.c

@@ -209,7 +209,6 @@ static const sha256_func sha256_funcs[] = {
 
 
 #ifdef WANT_CPUMINE
 #ifdef WANT_CPUMINE
 enum sha256_algos opt_algo = ALGO_FASTAUTO;
 enum sha256_algos opt_algo = ALGO_FASTAUTO;
-bool opt_usecpu = false;
 static bool forced_n_threads;
 static bool forced_n_threads;
 #endif
 #endif
 
 

+ 0 - 1
driver-cpu.h

@@ -67,7 +67,6 @@ enum sha256_algos {
 };
 };
 
 
 extern const char *algo_names[];
 extern const char *algo_names[];
-extern bool opt_usecpu;
 extern struct device_drv cpu_drv;
 extern struct device_drv cpu_drv;
 
 
 extern char *set_algo(const char *arg, enum sha256_algos *algo);
 extern char *set_algo(const char *arg, enum sha256_algos *algo);

+ 0 - 5
miner.c

@@ -2004,11 +2004,6 @@ static struct opt_table opt_config_table[] = {
 	OPT_WITH_ARG("--http-port",
 	OPT_WITH_ARG("--http-port",
 	             opt_set_intval, opt_show_intval, &httpsrv_port,
 	             opt_set_intval, opt_show_intval, &httpsrv_port,
 	             "Port number to listen on for HTTP getwork miners (-1 means disabled)"),
 	             "Port number to listen on for HTTP getwork miners (-1 means disabled)"),
-#endif
-#if defined(WANT_CPUMINE) && (defined(HAVE_OPENCL) || defined(USE_FPGA))
-	OPT_WITHOUT_ARG("--enable-cpu|-C",
-			opt_set_bool, &opt_usecpu,
-			opt_hidden),
 #endif
 #endif
 	OPT_WITH_ARG("--expiry",
 	OPT_WITH_ARG("--expiry",
 		     set_int_0_to_9999, opt_show_intval, &opt_expiry,
 		     set_int_0_to_9999, opt_show_intval, &opt_expiry,