refactor: remove extraneous lock annotations from function definitions

These annotations belong in the declarations rather than the definitions.
While harmless now, future versions of clang may warn about these.
This commit is contained in:
Cory Fields
2024-06-20 18:43:38 +00:00
parent a961ad1beb
commit 5729dbbb74
5 changed files with 6 additions and 7 deletions

View File

@@ -179,7 +179,7 @@ void HandleWalletError(const std::shared_ptr<CWallet> wallet, DatabaseStatus& st
}
}
void AppendLastProcessedBlock(UniValue& entry, const CWallet& wallet) EXCLUSIVE_LOCKS_REQUIRED(wallet.cs_wallet)
void AppendLastProcessedBlock(UniValue& entry, const CWallet& wallet)
{
AssertLockHeld(wallet.cs_wallet);
UniValue lastprocessedblock{UniValue::VOBJ};