Remove old todo module code

This commit is contained in:
Matthias Beyer 2015-11-10 19:13:06 +01:00
parent 92fddae230
commit e73701ace4
2 changed files with 1 additions and 39 deletions

View file

@ -6,9 +6,7 @@ use std::fmt::Display;
use std::path::Path; use std::path::Path;
use std::result::Result; use std::result::Result;
use module::todo::TodoModule; use storage::backend::*;
mod todo;
#[derive(Debug)] #[derive(Debug)]
pub struct ModuleError { pub struct ModuleError {

View file

@ -1,36 +0,0 @@
use runtime::Runtime;
use module::Module;
use module::ModuleResult;
use std::path::Path;
use std::result::Result;
pub struct TodoModule {
path: Option<String>,
}
const CALLNAMES : &'static [&'static str] = &[ "todo" ];
impl Module for TodoModule {
fn new(rt : &Runtime) -> TodoModule {
TodoModule {
path: None
}
}
fn callnames() -> &'static [&'static str] {
CALLNAMES
}
fn name(&self) -> &'static str{
"Todo"
}
fn execute(&self, rt : &Runtime) -> ModuleResult {
Ok(())
}
fn shutdown(&self, rt : &Runtime) -> ModuleResult {
Ok(())
}
}