From 989ad52dc1c46f1870a1a8431f7e3c669dceaf60 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 27 Jul 2020 21:57:03 -0400 Subject: cpu_manager: Remove redundant std::function declarations We can just return the function directly. Making for less reading. --- src/core/cpu_manager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core') diff --git a/src/core/cpu_manager.cpp b/src/core/cpu_manager.cpp index 32afcf3ae..358943429 100644 --- a/src/core/cpu_manager.cpp +++ b/src/core/cpu_manager.cpp @@ -52,15 +52,15 @@ void CpuManager::Shutdown() { } std::function CpuManager::GetGuestThreadStartFunc() { - return std::function(GuestThreadFunction); + return GuestThreadFunction; } std::function CpuManager::GetIdleThreadStartFunc() { - return std::function(IdleThreadFunction); + return IdleThreadFunction; } std::function CpuManager::GetSuspendThreadStartFunc() { - return std::function(SuspendThreadFunction); + return SuspendThreadFunction; } void CpuManager::GuestThreadFunction(void* cpu_manager_) { -- cgit v1.2.3