Removed obsolete function valid_key

This commit is contained in:
Dennis Potter 2018-07-24 19:08:59 +02:00
parent ab4dea3b5e
commit e792c72255
1 changed files with 0 additions and 10 deletions

View File

@ -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 {