Skip to content

Commit

Permalink
helix_term::keymap: Remove one-liner solely used for a test.
Browse files Browse the repository at this point in the history
  • Loading branch information
gibbz00 committed May 31, 2023
1 parent 531fe2e commit 9060b9f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions helix-term/src/keymap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 9060b9f

Please sign in to comment.