aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/macros.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term/src/macros.rs')
-rw-r--r--helix-term/src/macros.rs16
1 files changed, 0 insertions, 16 deletions
diff --git a/helix-term/src/macros.rs b/helix-term/src/macros.rs
deleted file mode 100644
index 3b22a786..00000000
--- a/helix-term/src/macros.rs
+++ /dev/null
@@ -1,16 +0,0 @@
-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
- }
- };
-}