diff --git a/input/src/input_dsl.rs b/input/src/input_dsl.rs index bcc6067..1fe3acf 100644 --- a/input/src/input_dsl.rs +++ b/input/src/input_dsl.rs @@ -152,37 +152,3 @@ where None } } - - //fn handle (&self, state: &mut T, input: &U) -> Perhaps { - //for layer in self.layers.iter() { - //if !(layer.0)(state) { - //continue - //} - //let command: Option = SourceIter(layer.1).command::<_, _, _>(state, input); - //if let Some(command) = command { - //if let Some(undo) = command.execute(state)? { - ////app.history.push(undo); - //} - //return Ok(Some(true)) - //} - //} - //Ok(None) - //} -//} - //fn layer (mut self, keymap: &'static str) -> Self { - //self.add_layer(keymap); - //self - //} - //fn layer_if (mut self, condition: impl Fn(&T)->bool + 'static, keymap: &'static str) -> Self { - //self.add_layer_if(condition, keymap); - //self - //} - //fn add_layer (&mut self, keymap: &'static str) -> &mut Self { - //self.layers.push((Box::new(|_|true), keymap)); - //self - //} - //fn add_layer_if (&mut self, condition: impl Fn(&T)->bool + 'static, keymap: &'static str) -> &mut Self { - //self.layers.push((Box::new(condition), keymap)); - //self - //} -//}