Skip to content

Commit

Permalink
Fix unused variable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
wengxt committed Nov 3, 2024
1 parent 19dd04a commit 0b44ea8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/zhuyinengine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,6 @@ void ZhuyinEngine::activate(const InputMethodEntry &,

void ZhuyinEngine::deactivate(const InputMethodEntry &entry,
InputContextEvent &event) {
auto *inputContext = event.inputContext();
if (event.type() == EventType::InputContextSwitchInputMethod) {
if (*config_.commitOnSwitch) {
auto *state = event.inputContext()->propertyFor(&factory_);
Expand Down

0 comments on commit 0b44ea8

Please sign in to comment.