Skip to content

Commit 588a73d

Browse files
committed
core: Remove unused last_text_control
1 parent 149afcb commit 588a73d

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

core/src/input.rs

-10
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ pub struct InputManager {
6464
keys_toggled: HashSet<KeyCode>,
6565
last_key: KeyCode,
6666
last_char: Option<char>,
67-
last_text_control: Option<TextControlCode>,
6867
last_click: Option<ClickEventData>,
6968

7069
/// A map from gamepad buttons to key codes.
@@ -78,7 +77,6 @@ impl InputManager {
7877
keys_toggled: HashSet::new(),
7978
last_key: KeyCode::UNKNOWN,
8079
last_char: None,
81-
last_text_control: None,
8280
last_click: None,
8381
gamepad_button_mapping,
8482
}
@@ -178,10 +176,6 @@ impl InputManager {
178176
InputEvent::KeyUp { key_code, key_char } => {
179177
self.last_char = key_char;
180178
self.remove_key(key_code);
181-
self.last_text_control = None;
182-
}
183-
InputEvent::TextControl { code } => {
184-
self.last_text_control = Some(code);
185179
}
186180
InputEvent::MouseDown { button, .. } => {
187181
self.toggle_key(button.into());
@@ -228,10 +222,6 @@ impl InputManager {
228222
self.last_char
229223
}
230224

231-
pub fn last_text_control(&self) -> Option<TextControlCode> {
232-
self.last_text_control
233-
}
234-
235225
pub fn last_click_index(&self) -> usize {
236226
self.last_click
237227
.as_ref()

0 commit comments

Comments
 (0)