From 00a9cf4a8506fbfe181cd165c2257ef7f8db5ec3 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 7 Jul 2009 21:11:13 -0700 Subject: [PATCH] Remove more unneeded variables --- OpenAL32/alSource.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c index 9f28c9d1..99fb5f06 100644 --- a/OpenAL32/alSource.c +++ b/OpenAL32/alSource.c @@ -532,9 +532,6 @@ ALAPI ALvoid ALAPIENTRY alSourcei(ALuint source,ALenum eParam,ALint lValue) ALCcontext *pContext; ALsource *pSource; ALbufferlistitem *pALBufferListItem; - ALint Counter = 0; - ALint DataSize = 0; - ALint BufferSize; pContext = alcGetCurrentContext(); if (pContext) @@ -594,11 +591,6 @@ ALAPI ALvoid ALAPIENTRY alSourcei(ALuint source,ALenum eParam,ALint lValue) // Decrement reference counter for buffer if (pALBufferListItem->buffer) ((ALbuffer*)(ALTHUNK_LOOKUPENTRY(pALBufferListItem->buffer)))->refcount--; - // Record size of buffer - BufferSize = ((ALbuffer*)ALTHUNK_LOOKUPENTRY(pALBufferListItem->buffer))->size; - DataSize += BufferSize; - // Increment the number of buffers removed from queue - Counter++; // Release memory for buffer list item free(pALBufferListItem); // Decrement the number of buffers in the queue @@ -621,8 +613,6 @@ ALAPI ALvoid ALAPIENTRY alSourcei(ALuint source,ALenum eParam,ALint lValue) pSource->queue = pALBufferListItem; pSource->BuffersInQueue = 1; - DataSize = ((ALbuffer*)ALTHUNK_LOOKUPENTRY(lValue))->size; - // Increment reference counter for buffer ((ALbuffer*)(ALTHUNK_LOOKUPENTRY(lValue)))->refcount++; } -- 2.11.4.GIT