From 6304789a18f9391ff70bf8eed649bdecf176a086 Mon Sep 17 00:00:00 2001 From: vicjuma Date: Fri, 7 Aug 2026 03:05:49 +0300 Subject: [PATCH] Wallet, refactor: Remove orphaned EraseWatchOnly function Removed a function whose caller was removed in a previous merged PR --- src/wallet/walletdb.cpp | 8 -------- src/wallet/walletdb.h | 1 - 2 files changed, 9 deletions(-) diff --git a/src/wallet/walletdb.cpp b/src/wallet/walletdb.cpp index ae6ee8487ad..a71a60c4a82 100644 --- a/src/wallet/walletdb.cpp +++ b/src/wallet/walletdb.cpp @@ -179,14 +179,6 @@ bool WalletBatch::WriteWatchOnly(const CScript &dest, const CKeyMetadata& keyMet return WriteIC(std::make_pair(DBKeys::WATCHS, dest), uint8_t{'1'}); } -bool WalletBatch::EraseWatchOnly(const CScript &dest) -{ - if (!EraseIC(std::make_pair(DBKeys::WATCHMETA, dest))) { - return false; - } - return EraseIC(std::make_pair(DBKeys::WATCHS, dest)); -} - bool WalletBatch::WriteBestBlock(const CBlockLocator& locator) { WriteIC(DBKeys::BESTBLOCK, CBlockLocator()); // Write empty block locator so versions that require a merkle branch automatically rescan diff --git a/src/wallet/walletdb.h b/src/wallet/walletdb.h index ed24f290a81..f5804ab95ba 100644 --- a/src/wallet/walletdb.h +++ b/src/wallet/walletdb.h @@ -241,7 +241,6 @@ public: bool EraseMasterKey(unsigned int id); bool WriteWatchOnly(const CScript &script, const CKeyMetadata &keymeta); - bool EraseWatchOnly(const CScript &script); bool WriteBestBlock(const CBlockLocator& locator); bool ReadBestBlock(CBlockLocator& locator);