aboutsummaryrefslogtreecommitdiffstats
path: root/src/parser.rs
diff options
context:
space:
mode:
authorTeddy Wing2018-10-03 14:55:13 +0200
committerTeddy Wing2018-10-03 14:55:13 +0200
commit997374f109adbe62c4e55c7d58cfecf8a2e43b9b (patch)
tree392ec7c2e420d1905787ff0485e3fb4229356dd2 /src/parser.rs
parent52398f0c8507fdb5fe4a680bbbb841232b396ae7 (diff)
downloaddome-key-map-997374f109adbe62c4e55c7d58cfecf8a2e43b9b.tar.bz2
Remove old code from 52398f0c8507fdb5fe4a680bbbb841232b396ae7
Non-working attempts.
Diffstat (limited to 'src/parser.rs')
-rw-r--r--src/parser.rs22
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,