diff options
Diffstat (limited to 'helix-term/src/keymap.rs')
-rw-r--r-- | helix-term/src/keymap.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/helix-term/src/keymap.rs b/helix-term/src/keymap.rs index 4b176b61..148611e3 100644 --- a/helix-term/src/keymap.rs +++ b/helix-term/src/keymap.rs @@ -79,23 +79,6 @@ use std::collections::HashMap; // } // } -macro_rules! hashmap { - (@single $($x:tt)*) => (()); - (@count $($rest:expr),*) => (<[()]>::len(&[$(hashmap!(@single $rest)),*])); - - ($($key:expr => $value:expr,)+) => { hashmap!($($key => $value),+) }; - ($($key:expr => $value:expr),*) => { - { - let _cap = hashmap!(@count $($key),*); - let mut _map = ::std::collections::HashMap::with_capacity(_cap); - $( - let _ = _map.insert($key, $value); - )* - _map - } - }; -} - type Keymap = HashMap<Key, Command>; pub fn default() -> Keymap { |