recovery_ui: Remove RecoveryUI::last_key.
It's a private member, and the last user has been removed in [1] in
2015.
[1] commit ec28340cf3
,
https://android-review.googlesource.com/c/platform/bootable/recovery/+/146330
Test: mmma -j bootable/recovery
Change-Id: I65a2370cb20a7b296888425a44a42c8b90abc766
This commit is contained in:
parent
5135d1f095
commit
1df3ce7ea8
2 changed files with 1 additions and 3 deletions
|
@ -230,6 +230,7 @@ class RecoveryUI {
|
|||
|
||||
bool InitScreensaver();
|
||||
void SetScreensaverState(ScreensaverState state);
|
||||
|
||||
// Key event input queue
|
||||
std::mutex key_queue_mutex;
|
||||
std::condition_variable key_queue_cond;
|
||||
|
@ -243,7 +244,6 @@ class RecoveryUI {
|
|||
int rel_sum;
|
||||
|
||||
int consecutive_power_keys;
|
||||
int last_key;
|
||||
|
||||
bool has_power_key;
|
||||
bool has_up_key;
|
||||
|
|
|
@ -70,7 +70,6 @@ RecoveryUI::RecoveryUI()
|
|||
key_down_count(0),
|
||||
enable_reboot(true),
|
||||
consecutive_power_keys(0),
|
||||
last_key(-1),
|
||||
has_power_key(false),
|
||||
has_up_key(false),
|
||||
has_down_key(false),
|
||||
|
@ -585,7 +584,6 @@ RecoveryUI::KeyAction RecoveryUI::CheckKey(int key, bool is_long_press) {
|
|||
consecutive_power_keys = 0;
|
||||
}
|
||||
|
||||
last_key = key;
|
||||
return (IsTextVisible() || screensaver_state_ == ScreensaverState::OFF) ? ENQUEUE : IGNORE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue