From 858db66da216276f4996f1b736ae76b5d90a1eee Mon Sep 17 00:00:00 2001 From: zhaolinglan Date: Sat, 20 May 2023 17:55:37 +0800 Subject: [PATCH] modify switch Signed-off-by: zhaolinglan --- services/src/input_method_system_ability.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/services/src/input_method_system_ability.cpp b/services/src/input_method_system_ability.cpp index 3c7477c3..c4a31ae3 100644 --- a/services/src/input_method_system_ability.cpp +++ b/services/src/input_method_system_ability.cpp @@ -361,7 +361,6 @@ void InputMethodSystemAbility::PushToSwitchQueue(const SwitchInfo &info) void InputMethodSystemAbility::PopSwitchQueue() { std::lock_guard lock(switchQueueMutex_); - auto info = switchQueue_.front(); switchQueue_.pop(); switchCV_.notify_all(); } @@ -369,7 +368,6 @@ void InputMethodSystemAbility::PopSwitchQueue() bool InputMethodSystemAbility::CheckReadyToSwitch(const SwitchInfo &info) { std::lock_guard lock(switchQueueMutex_); - auto frontInfo = switchQueue_.front(); return info == switchQueue_.front(); }