input_dsl: cleanup commented code
Some checks are pending
/ build (push) Waiting to run

This commit is contained in:
🪞👃🪞 2025-04-30 21:51:07 +03:00
parent 119d5c35f0
commit 44ebe17c66

View file

@ -152,37 +152,3 @@ where
None
}
}
//fn handle <C> (&self, state: &mut T, input: &U) -> Perhaps<bool> {
//for layer in self.layers.iter() {
//if !(layer.0)(state) {
//continue
//}
//let command: Option<C> = 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
//}
//}