diff options
author | gibbz00 | 2023-05-29 19:36:23 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2023-06-07 01:11:13 +0000 |
commit | d20c1632a7331876215db59410361f0605f2f3ed (patch) | |
tree | cd576bc5cb91c2caba9b0c9bda3a8117fe224bac /helix-term | |
parent | f7df53c9481ebd9024a439eacb0467051faa30f9 (diff) |
`helix_term::keymap`: Remove one-liner solely used for a test.
Diffstat (limited to 'helix-term')
-rw-r--r-- | helix-term/src/keymap.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/helix-term/src/keymap.rs b/helix-term/src/keymap.rs index dc578e66..79d6b46a 100644 --- a/helix-term/src/keymap.rs +++ b/helix-term/src/keymap.rs @@ -111,10 +111,6 @@ impl KeyTrieNode { } Info::from_keymap(self.name(), body) } - /// Get a reference to the key trie node's order. - pub fn order(&self) -> &[KeyEvent] { - self.order.as_slice() - } } impl PartialEq for KeyTrieNode { @@ -534,7 +530,7 @@ mod tests { ); // Make sure an order was set during merge let node = keymap.search(&[crate::key!(' ')]).unwrap(); - assert!(!node.node().unwrap().order().is_empty()) + assert!(!node.node().unwrap().order.as_slice().is_empty()) } #[test] |