Remove unused LockAssertion struct

This commit is contained in:
Hennadii Stepanov
2020-09-19 12:06:36 +03:00
parent ab2a44297f
commit 0bd1184adf
2 changed files with 0 additions and 33 deletions

View File

@@ -352,18 +352,4 @@ public:
}
};
// Utility class for indicating to compiler thread analysis that a mutex is
// locked (when it couldn't be determined otherwise).
struct SCOPED_LOCKABLE LockAssertion
{
template <typename Mutex>
explicit LockAssertion(Mutex& mutex) EXCLUSIVE_LOCK_FUNCTION(mutex)
{
#ifdef DEBUG_LOCKORDER
AssertLockHeld(mutex);
#endif
}
~LockAssertion() UNLOCK_FUNCTION() {}
};
#endif // BITCOIN_SYNC_H