Skip to content

Commit 1ec900a

Browse files
committed
Remove broken+useless lock/unlock log prints
1 parent 352ed22 commit 1ec900a

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/sync.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ static void push_lock(void* c, const CLockLocation& locklocation, bool fTry)
8686
if (lockstack.get() == NULL)
8787
lockstack.reset(new LockStack);
8888

89-
LogPrint("lock", "Locking: %s\n", locklocation.ToString());
9089
dd_mutex.lock();
9190

9291
(*lockstack).push_back(std::make_pair(c, locklocation));
@@ -113,10 +112,6 @@ static void push_lock(void* c, const CLockLocation& locklocation, bool fTry)
113112

114113
static void pop_lock()
115114
{
116-
if (fDebug) {
117-
const CLockLocation& locklocation = (*lockstack).rbegin()->second;
118-
LogPrint("lock", "Unlocked: %s\n", locklocation.ToString());
119-
}
120115
dd_mutex.lock();
121116
(*lockstack).pop_back();
122117
dd_mutex.unlock();

0 commit comments

Comments
 (0)