From 8404303dbd30924eca3f96232fc7308d2df17dfe Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 24 Nov 2015 20:19:01 +0100 Subject: [PATCH] Remove BMModule::execute() which is not required by the trait anymore --- src/module/bm/mod.rs | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/module/bm/mod.rs b/src/module/bm/mod.rs index 4c74cc81..86273652 100644 --- a/src/module/bm/mod.rs +++ b/src/module/bm/mod.rs @@ -41,28 +41,6 @@ impl Module for BMModule { "Bookmark" } - fn execute(&self, rt : &Runtime) -> ModuleResult { - let cmd = rt.config.cli_matches.subcommand_matches("bm").unwrap(); - match cmd.subcommand_name() { - Some("add") => { - debug!("Calling 'add'..."); - add(rt, cmd.subcommand_matches("add").unwrap()) - } - Some("list") => { - debug!("Calling 'list'..."); - list(rt, cmd.subcommand_matches("list").unwrap()) - } - Some("remove") => { - debug!("Calling 'remove'..."); - list(rt, cmd.subcommand_matches("remove").unwrap()) - } - _ => { - info!("Not calling any of add, list, remove"); - Ok(()) - } - } - } - fn shutdown(&self, rt : &Runtime) -> ModuleResult { Ok(()) }