impr: Remove an unused `std::mutex` in `TaskManager::runner` (#1088)

This commit is contained in:
KOLANICH 2023-05-20 11:38:12 +00:00 committed by GitHub
parent 749823e044
commit 4faebf435c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -192,7 +192,6 @@ namespace hex {
}
void TaskManager::runner(const std::stop_token &stopToken) {
std::mutex mutex;
while (true) {
std::shared_ptr<Task> task;
{
@ -302,4 +301,4 @@ namespace hex {
s_tasksFinishedCallbacks.push_back(function);
}
}
}