From 256afa3be9162b52ab93ef52996f35e7a07c8a0b Mon Sep 17 00:00:00 2001 From: Jedrzej Stuczynski Date: Fri, 6 Dec 2019 16:20:26 +0000 Subject: [PATCH] Removed example code --- src/main.rs | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/src/main.rs b/src/main.rs index 44e3bb743d..7bc92328ec 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,32 +7,6 @@ use std::process; mod mix_peer; mod node; -// -//fn run(matches: ArgMatches) -> Result<(), String> { -// // ... -// match matches.subcommand() { -// ("analyse", Some(m)) => run_analyse(m, &logger), -// ("verify", Some(m)) => run_verify(m, &logger), -// _ => Ok(()), -// } -//} -// -//fn run_analyse(matches: &ArgMatches, parent_logger: &slog::Logger) -> Result<(), String> { -// let logger = parent_logger.new(o!("command" => "analyse")); -// let input = matches.value_of("input-file").unwrap(); -// debug!(logger, "analysis_started"; "input_file" => input); -// // ... -// Ok(()) -//} -// -//fn run_verify(matches: &ArgMatches, parent_logger: &slog::Logger) -> Result<(), String> { -// let logger = parent_logger.new(o!("command" => "verify")); -// let algorithm = value_t!(matches.value_of("algorithm"), Algorithm).unwrap(); -// debug!(logger, "verification_started"; "algorithm" => format!("{:?}", algorithm)); -// // ... -// Ok(()) -//} - fn execute(matches: ArgMatches) -> Result<(), String> { match matches.subcommand() { ("run", Some(m)) => Ok(run(m)),