diff --git a/src/wallet/scriptpubkeyman.cpp b/src/wallet/scriptpubkeyman.cpp index eb445923a5e..5422249ae1c 100644 --- a/src/wallet/scriptpubkeyman.cpp +++ b/src/wallet/scriptpubkeyman.cpp @@ -820,13 +820,6 @@ std::optional LegacyDataSPKM::MigrateToDescriptor() return out; } -bool LegacyDataSPKM::DeleteRecords() -{ - return RunWithinTxn(m_storage.GetDatabase(), /*process_desc=*/"delete legacy records", [&](WalletBatch& batch){ - return DeleteRecordsWithDB(batch); - }); -} - bool LegacyDataSPKM::DeleteRecordsWithDB(WalletBatch& batch) { LOCK(cs_KeyStore); diff --git a/src/wallet/scriptpubkeyman.h b/src/wallet/scriptpubkeyman.h index 7fd81d80f4d..b52941227b2 100644 --- a/src/wallet/scriptpubkeyman.h +++ b/src/wallet/scriptpubkeyman.h @@ -267,7 +267,6 @@ public: * Does not modify this ScriptPubKeyMan. */ std::optional MigrateToDescriptor(); /** Delete all the records of this LegacyScriptPubKeyMan from disk*/ - bool DeleteRecords(); bool DeleteRecordsWithDB(WalletBatch& batch); };