Removed obsolete function valid_key

master
Dennis Potter 4 years ago
parent ab4dea3b5e
commit e792c72255
  1. 10
      src/key_operations.rs

@ -290,16 +290,6 @@ enum MouseButton {
MouseDouble = 8,
}
pub fn valid_key(c: &str) -> bool {
for key in KEY_MAP.iter() {
if key.0 == c {
return true;
}
}
false
}
pub fn encode_byte(c: &str) -> Option<u8> {
for key in KEY_MAP.iter() {
if key.0 == c {

Loading…
Cancel
Save