From 997374f109adbe62c4e55c7d58cfecf8a2e43b9b Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 3 Oct 2018 14:55:13 +0200 Subject: Remove old code from 52398f0c8507fdb5fe4a680bbbb841232b396ae7 Non-working attempts. --- src/parser.rs | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'src/parser.rs') diff --git a/src/parser.rs b/src/parser.rs index daea8fc..72dd0bf 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -70,28 +70,6 @@ pub enum KeyboardKey { KeyCode(KeyCode), } -impl KeyboardKey { - // fn map(&self, f: F) -> &Self - // where - // K: KeyCodeConvertible, - // F: Fn(K), - // { - // match self { - // KeyboardKey::Character(c) => f(c.0), - // KeyboardKey::KeyCode(k) => f(k.0), - // } - // - // self - // } - - // pub fn extract(&self) -> Box { - // return match self { - // KeyboardKey::Character(c) => Box::new(c.0), - // KeyboardKey::KeyCode(k) => Box::new(k.0), - // } - // } -} - #[derive(Debug, PartialEq)] pub struct KeyboardKeyWithModifiers { key: KeyboardKey, -- cgit v1.2.3