diff options
| author | Teddy Wing | 2018-10-03 14:55:13 +0200 |
|---|---|---|
| committer | Teddy Wing | 2018-10-03 14:55:13 +0200 |
| commit | 997374f109adbe62c4e55c7d58cfecf8a2e43b9b (patch) | |
| tree | 392ec7c2e420d1905787ff0485e3fb4229356dd2 /src/parser.rs | |
| parent | 52398f0c8507fdb5fe4a680bbbb841232b396ae7 (diff) | |
| download | dome-key-map-997374f109adbe62c4e55c7d58cfecf8a2e43b9b.tar.bz2 | |
Remove old code from 52398f0c8507fdb5fe4a680bbbb841232b396ae7
Non-working attempts.
Diffstat (limited to 'src/parser.rs')
| -rw-r--r-- | src/parser.rs | 22 |
1 files changed, 0 insertions, 22 deletions
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<K, F>(&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<K: KeyCodeConvertible + Copy>(&self) -> Box<K> { - // 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, |
