From fa7e5c15a795852972a322fb9605643d4cef3471 Mon Sep 17 00:00:00 2001 From: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> Date: Wed, 7 May 2025 17:32:12 +0200 Subject: [PATCH] Remove unused LegacyDataSPKM::DeleteRecords() --- src/wallet/scriptpubkeyman.cpp | 7 ------- src/wallet/scriptpubkeyman.h | 1 - 2 files changed, 8 deletions(-) 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); };