From 37f3c909146c7c96e0c3a5265cdf948d0f3b5ddf Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 30 Dec 2015 22:47:28 +0100 Subject: [PATCH] Remove dead code --- src/main.rs | 2 +- src/module/bm/mod.rs | 4 ---- src/ui/file.rs | 4 ---- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/main.rs b/src/main.rs index 6ae80f6a..3d225826 100644 --- a/src/main.rs +++ b/src/main.rs @@ -30,7 +30,7 @@ fn main() { let app = App::from_yaml(yaml); let config = CliConfig::new(app); let configuration = Configuration::new(&config); - let logger = ImagLogger::init(&configuration, &config); + ImagLogger::init(&configuration, &config); debug!("Logger created!"); debug!("CliConfig : {:?}", &config); diff --git a/src/module/bm/mod.rs b/src/module/bm/mod.rs index 9a043089..0ed5d392 100644 --- a/src/module/bm/mod.rs +++ b/src/module/bm/mod.rs @@ -31,10 +31,6 @@ impl<'a> BM<'a> { } } - fn runtime(&self) -> &Runtime { - &self.rt - } - /** * Subcommand: add */ diff --git a/src/ui/file.rs b/src/ui/file.rs index 369c7164..3feb8eab 100644 --- a/src/ui/file.rs +++ b/src/ui/file.rs @@ -120,8 +120,6 @@ impl FilePrinter for SimplePrinter { * Table printer to print file information in a nice ASCII-table */ pub struct TablePrinter { - verbose: bool, - debug: bool, sp: SimplePrinter, } @@ -129,8 +127,6 @@ impl FilePrinter for TablePrinter { fn new(verbose: bool, debug: bool) -> TablePrinter { TablePrinter { - debug: debug, - verbose: verbose, sp: SimplePrinter::new(verbose, debug), } }