| Index: webrtc/base/criticalsection.cc
|
| diff --git a/webrtc/base/criticalsection.cc b/webrtc/base/criticalsection.cc
|
| index 63582ebae8c3e716047e2fd0dca869983b30a8c0..b15bb82ef4fb40da3f96a476fe09fec23e5c1fb2 100644
|
| --- a/webrtc/base/criticalsection.cc
|
| +++ b/webrtc/base/criticalsection.cc
|
| @@ -180,18 +180,6 @@ bool CriticalSection::CurrentThreadIsOwner() const {
|
| #endif
|
| }
|
|
|
| -bool CriticalSection::IsLocked() const {
|
| -#if defined(WEBRTC_WIN)
|
| - return crit_.LockCount != -1;
|
| -#else
|
| -#if CS_DEBUG_CHECKS
|
| - return thread_ != 0;
|
| -#else
|
| - return true;
|
| -#endif
|
| -#endif
|
| -}
|
| -
|
| CritScope::CritScope(const CriticalSection* cs) : cs_(cs) { cs_->Enter(); }
|
| CritScope::~CritScope() { cs_->Leave(); }
|
|
|
|
|