From 4faebf435c432dce58acb0f862ce2b1547a351ad Mon Sep 17 00:00:00 2001 From: KOLANICH Date: Sat, 20 May 2023 11:38:12 +0000 Subject: [PATCH] impr: Remove an unused `std::mutex` in `TaskManager::runner` (#1088) --- lib/libimhex/source/api/task.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/libimhex/source/api/task.cpp b/lib/libimhex/source/api/task.cpp index 53735e3f4..3ce4b7f65 100644 --- a/lib/libimhex/source/api/task.cpp +++ b/lib/libimhex/source/api/task.cpp @@ -192,7 +192,6 @@ namespace hex { } void TaskManager::runner(const std::stop_token &stopToken) { - std::mutex mutex; while (true) { std::shared_ptr task; { @@ -302,4 +301,4 @@ namespace hex { s_tasksFinishedCallbacks.push_back(function); } -} \ No newline at end of file +}