From 91d08889218e06631f43a3dab0bae576aa46e43c Mon Sep 17 00:00:00 2001 From: Vasil Dimov Date: Thu, 16 Feb 2023 14:33:57 +0100 Subject: [PATCH] sync: unpublish LocksHeld() which is used only in sync.cpp --- src/sync.cpp | 2 +- src/sync.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sync.cpp b/src/sync.cpp index 46218056539..58752a9f182 100644 --- a/src/sync.cpp +++ b/src/sync.cpp @@ -246,7 +246,7 @@ void LeaveCritical() pop_lock(); } -std::string LocksHeld() +static std::string LocksHeld() { LockData& lockdata = GetLockData(); std::lock_guard lock(lockdata.dd_mutex); diff --git a/src/sync.h b/src/sync.h index 7242a793abe..09ec0d1255d 100644 --- a/src/sync.h +++ b/src/sync.h @@ -57,7 +57,6 @@ template void EnterCritical(const char* pszName, const char* pszFile, int nLine, MutexType* cs, bool fTry = false); void LeaveCritical(); void CheckLastCritical(void* cs, std::string& lockname, const char* guardname, const char* file, int line); -std::string LocksHeld(); template void AssertLockHeldInternal(const char* pszName, const char* pszFile, int nLine, MutexType* cs) EXCLUSIVE_LOCKS_REQUIRED(cs); template