aboutsummaryrefslogtreecommitdiff
path: root/src/sync.h
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-09-19 12:06:36 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-09-19 18:02:42 +0300
commit0bd1184adf6610c0bd14f4e9a25c0a200e65ae25 (patch)
tree3755ff8cdd8f0202f64684d03511f1fc82fc7f22 /src/sync.h
parentab2a44297fd0796bf5797ae2a477e8e56d9c3c12 (diff)
downloadbitcoin-0bd1184adf6610c0bd14f4e9a25c0a200e65ae25.tar.xz
Remove unused LockAssertion struct
Diffstat (limited to 'src/sync.h')
-rw-r--r--src/sync.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/sync.h b/src/sync.h
index 7b397a8003..41f4e43bdd 100644
--- a/src/sync.h
+++ b/src/sync.h
@@ -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