CheatSearch: Remove redundant lambdas

Core::RunAsCPUThread is obsoleted by CPUThreadGuard reference already passed into the function. The nonsense lambda in CheatSearchWidget is from changes in fdb7328c73.
This commit is contained in:
mitaclaw
2024-02-01 19:01:18 -08:00
parent d96d2cd68c
commit 085c4d154e
2 changed files with 61 additions and 87 deletions

View File

@ -301,9 +301,7 @@ void CheatSearchWidget::OnNextScanClicked()
}
}
const Cheats::SearchErrorCode error_code = [this, &guard] {
return m_session->RunSearch(guard);
}();
const Cheats::SearchErrorCode error_code = m_session->RunSearch(guard);
if (error_code == Cheats::SearchErrorCode::Success)
{