Removed obsolete function valid_key
This commit is contained in:
parent
ab4dea3b5e
commit
e792c72255
@ -290,16 +290,6 @@ enum MouseButton {
|
|||||||
MouseDouble = 8,
|
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> {
|
pub fn encode_byte(c: &str) -> Option<u8> {
|
||||||
for key in KEY_MAP.iter() {
|
for key in KEY_MAP.iter() {
|
||||||
if key.0 == c {
|
if key.0 == c {
|
||||||
|
Loading…
Reference in New Issue
Block a user