From 8f456f68ff15e3965ffdf579ed3f10bad996b594 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 11 Sep 2011 09:28:30 -0700 Subject: Remove GetLockedContext --- Alc/ALc.c | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'Alc/ALc.c') diff --git a/Alc/ALc.c b/Alc/ALc.c index 96609e0b..a6b5707e 100644 --- a/Alc/ALc.c +++ b/Alc/ALc.c @@ -1566,29 +1566,6 @@ ALCvoid UnlockContext(ALCcontext *context) ALCcontext_DecRef(context); } -/* GetLockedContext - * - * Returns the currently active context, in a locked state. - */ -ALCcontext *GetLockedContext(void) -{ - ALCcontext *context = NULL; - - context = pthread_getspecific(LocalContext); - if(context) - LockContext(context); - else - { - LockLists(); - context = GlobalContext; - if(context) - LockContext(context); - UnlockLists(); - } - - return context; -} - /* GetContextRef * * Returns the currently active context, and adds a reference without locking -- cgit v1.2.3