Remove BMModule::execute() which is not required by the trait anymore

This commit is contained in:
Matthias Beyer 2015-11-24 20:19:01 +01:00
parent 168852714a
commit 8404303dbd
1 changed files with 0 additions and 22 deletions

View File

@ -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(())
}