mesa/gdi: Remove InitCritSections.cpp.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Sat, 23 Apr 2011 17:44:19 +0000 (18:44 +0100)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Sat, 23 Apr 2011 17:44:19 +0000 (18:44 +0100)
We are now able to declare global critical sections through other
mechanisms so this is useless code.

src/mesa/drivers/windows/gdi/InitCritSections.cpp [deleted file]

diff --git a/src/mesa/drivers/windows/gdi/InitCritSections.cpp b/src/mesa/drivers/windows/gdi/InitCritSections.cpp
deleted file mode 100644 (file)
index 69f03b8..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-#include "glapi.h"
-#include "glThread.h"
-
-#ifdef WIN32
-
-extern "C" _glthread_Mutex OneTimeLock;
-extern "C" _glthread_Mutex GenTexturesLock;
-
-extern "C" void FreeAllTSD(void);
-
-class _CriticalSectionInit
-{
-public:
-       static _CriticalSectionInit     m_inst;
-
-       _CriticalSectionInit()
-       {
-               _glthread_INIT_MUTEX(OneTimeLock);
-               _glthread_INIT_MUTEX(GenTexturesLock);
-       }
-
-       ~_CriticalSectionInit()
-       {
-               _glthread_DESTROY_MUTEX(OneTimeLock);
-               _glthread_DESTROY_MUTEX(GenTexturesLock);
-               FreeAllTSD();
-       }
-};
-
-_CriticalSectionInit _CriticalSectionInit::m_inst;
-
-
-#endif /* WIN32 */