From 53340056fdf3ab4fd46f002d3fb7a0393def0fa9 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Wed, 8 Apr 2015 11:28:52 -0700 Subject: [PATCH] Remove some unreachable code. This wasn't being used, and the other path should be fine. --- Core/HLE/sceKernelSemaphore.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Core/HLE/sceKernelSemaphore.cpp b/Core/HLE/sceKernelSemaphore.cpp index 855414149b..8037fdcc12 100644 --- a/Core/HLE/sceKernelSemaphore.cpp +++ b/Core/HLE/sceKernelSemaphore.cpp @@ -387,16 +387,7 @@ static int __KernelWaitSema(SceUID id, int wantedCount, u32 timeoutPtr, bool pro // If there are any callbacks, we always wait, and wake after the callbacks. bool hasCallbacks = processCallbacks && __KernelCurHasReadyCallbacks(); if (s->ns.currentCount >= wantedCount && s->waitingThreads.size() == 0 && !hasCallbacks) - { - if (hasCallbacks) - { - // Might actually end up having to wait, so set the timeout. - __KernelSetSemaTimeout(s, timeoutPtr); - __KernelWaitCallbacksCurThread(WAITTYPE_SEMA, id, wantedCount, timeoutPtr); - } - else - s->ns.currentCount -= wantedCount; - } + s->ns.currentCount -= wantedCount; else { SceUID threadID = __KernelGetCurThread();