From ea752d509b70b4097f0122c8feb8914b1adb0f49 Mon Sep 17 00:00:00 2001 From: AntiochP <30642645+antiochp@users.noreply.github.com> Date: Mon, 18 Dec 2017 20:33:27 -0500 Subject: [PATCH] fix build warning about unreachable code (#519) --- src/bin/grin.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/bin/grin.rs b/src/bin/grin.rs index 64dff73c5..de6af4361 100644 --- a/src/bin/grin.rs +++ b/src/bin/grin.rs @@ -191,7 +191,7 @@ fn main() { .long("key_derivations") .default_value("1000") .takes_value(true)) - + .subcommand(SubCommand::with_name("listen") .about("Runs the wallet in listening mode waiting for transactions.") .arg(Arg::with_name("port") @@ -199,7 +199,7 @@ fn main() { .long("port") .help("Port on which to run the wallet listener") .takes_value(true))) - + .subcommand(SubCommand::with_name("receive") .about("Processes a JSON transaction file.") .arg(Arg::with_name("input") @@ -207,7 +207,7 @@ fn main() { .short("i") .long("input") .takes_value(true))) - + .subcommand(SubCommand::with_name("send") .about("Builds a transaction to send someone some coins. By default, \ the transaction will just be printed to stdout. If a destination is \ @@ -510,9 +510,6 @@ fn wallet_command(wallet_args: &ArgMatches, global_config: GlobalConfig) { ("restore", Some(_)) => { let _=wallet::restore(&wallet_config, &keychain, key_derivations); } - ("receive", Some(_)) => { - panic!("Command 'receive' is depreciated, use 'listen' instead"); - } _ => panic!("Unknown wallet command, use 'grin help wallet' for details"), } }