From e2f665b9c00fe210c014b53bcee1b07c56b5305c Mon Sep 17 00:00:00 2001 From: GaryOderNichts <12049776+GaryOderNichts@users.noreply.github.com> Date: Mon, 1 Feb 2021 13:24:30 +0100 Subject: [PATCH] wiiu: remove unused semaphore variable --- src/core/CdStreamPosix.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/core/CdStreamPosix.cpp b/src/core/CdStreamPosix.cpp index 57f86181..ce2d77f4 100644 --- a/src/core/CdStreamPosix.cpp +++ b/src/core/CdStreamPosix.cpp @@ -33,12 +33,8 @@ typedef OSSemaphore sem_t; #define SEM_FAILED (NULL) -#define MAX_SEMAPHORES 64 -static sem_t* wiiu_semaphores[MAX_SEMAPHORES] = { 0 }; - static sem_t *sem_open(const char *name, int oflag, mode_t mode, unsigned int value) { - // just ignoring the name should be fine for now since each sem is only init once sem_t* sem = (sem_t*) calloc(1, sizeof(sem_t)); OSInitSemaphore(sem, value); return sem;