mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-28 18:01:27 +02:00
Remove unused LegacyDataSPKM::DeleteRecords()
This commit is contained in:
parent
ffff949472
commit
fa7e5c15a7
@ -820,13 +820,6 @@ std::optional<MigrationData> LegacyDataSPKM::MigrateToDescriptor()
|
|||||||
return out;
|
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)
|
bool LegacyDataSPKM::DeleteRecordsWithDB(WalletBatch& batch)
|
||||||
{
|
{
|
||||||
LOCK(cs_KeyStore);
|
LOCK(cs_KeyStore);
|
||||||
|
@ -267,7 +267,6 @@ public:
|
|||||||
* Does not modify this ScriptPubKeyMan. */
|
* Does not modify this ScriptPubKeyMan. */
|
||||||
std::optional<MigrationData> MigrateToDescriptor();
|
std::optional<MigrationData> MigrateToDescriptor();
|
||||||
/** Delete all the records of this LegacyScriptPubKeyMan from disk*/
|
/** Delete all the records of this LegacyScriptPubKeyMan from disk*/
|
||||||
bool DeleteRecords();
|
|
||||||
bool DeleteRecordsWithDB(WalletBatch& batch);
|
bool DeleteRecordsWithDB(WalletBatch& batch);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user