Skip to content

Commit fa7e5c1

Browse files
author
MarcoFalke
committed
Remove unused LegacyDataSPKM::DeleteRecords()
1 parent ffff949 commit fa7e5c1

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

src/wallet/scriptpubkeyman.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -820,13 +820,6 @@ std::optional<MigrationData> LegacyDataSPKM::MigrateToDescriptor()
820820
return out;
821821
}
822822

823-
bool LegacyDataSPKM::DeleteRecords()
824-
{
825-
return RunWithinTxn(m_storage.GetDatabase(), /*process_desc=*/"delete legacy records", [&](WalletBatch& batch){
826-
return DeleteRecordsWithDB(batch);
827-
});
828-
}
829-
830823
bool LegacyDataSPKM::DeleteRecordsWithDB(WalletBatch& batch)
831824
{
832825
LOCK(cs_KeyStore);

src/wallet/scriptpubkeyman.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,6 @@ class LegacyDataSPKM : public ScriptPubKeyMan, public FillableSigningProvider
267267
* Does not modify this ScriptPubKeyMan. */
268268
std::optional<MigrationData> MigrateToDescriptor();
269269
/** Delete all the records of this LegacyScriptPubKeyMan from disk*/
270-
bool DeleteRecords();
271270
bool DeleteRecordsWithDB(WalletBatch& batch);
272271
};
273272

0 commit comments

Comments
 (0)