From 9a3c3961dd166a1ee35c56cef051838390bc87b0 Mon Sep 17 00:00:00 2001 From: baldurk Date: Sat, 9 Jul 2016 20:39:00 +0200 Subject: [PATCH] Remove unused debug lock --- renderdoc/serialise/serialiser.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/renderdoc/serialise/serialiser.h b/renderdoc/serialise/serialiser.h index f10ec8eb7..cb1c4e0e3 100644 --- a/renderdoc/serialise/serialiser.h +++ b/renderdoc/serialise/serialiser.h @@ -550,10 +550,6 @@ public: void SetDebugText(bool enabled) { m_DebugTextWriting = enabled; } bool GetDebugText() { return m_DebugTextWriting; } string GetDebugStr() { return m_DebugText; } - // debug-only output must be locked since it's global across all serialisers - // essentially, which might not be thread safe in the normal flow - void DebugLock() { m_DebugLock.Lock(); } - void DebugUnlock() { m_DebugLock.Unlock(); } private: ////////////////////////////////////////// // Raw memory buffer read/write @@ -676,8 +672,6 @@ private: bool m_DebugTextWriting; string m_DebugText; ChunkLookup m_ChunkLookup; - - Threading::CriticalSection m_DebugLock; }; template <>