Skip to content

Commit dd5b0aa

Browse files
committed
Drop dead CWallet methods
1 parent 508c486 commit dd5b0aa

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

src/wallet/wallet.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -359,12 +359,6 @@ void CWallet::LoadScriptMetadata(const CScriptID& script_id, const CKeyMetadata&
359359
m_script_metadata[script_id] = meta;
360360
}
361361

362-
// Writes a keymetadata for a public key. overwrite specifies whether to overwrite an existing metadata for that key if there exists one.
363-
bool CWallet::WriteKeyMetadata(const CKeyMetadata& meta, const CPubKey& pubkey, const bool overwrite)
364-
{
365-
return WalletBatch(*database).WriteKeyMetadata(meta, pubkey, overwrite);
366-
}
367-
368362
void CWallet::UpgradeKeyMetadata()
369363
{
370364
AssertLockHeld(cs_wallet);
@@ -4548,9 +4542,3 @@ bool CWallet::AddKeyOriginWithDB(WalletBatch& batch, const CPubKey& pubkey, cons
45484542
mapKeyMetadata[pubkey.GetID()].hdKeypath = WriteHDKeypath(info.path);
45494543
return batch.WriteKeyMetadata(mapKeyMetadata[pubkey.GetID()], pubkey, true);
45504544
}
4551-
4552-
bool CWallet::AddKeyOrigin(const CPubKey& pubkey, const KeyOriginInfo& info)
4553-
{
4554-
WalletBatch batch(*database);
4555-
return AddKeyOriginWithDB(batch, pubkey, info);
4556-
}

src/wallet/wallet.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -779,8 +779,6 @@ class CWallet final : public CCryptoKeyStore, private interfaces::Chain::Notific
779779
// Map from Script ID to key metadata (for watch-only keys).
780780
std::map<CScriptID, CKeyMetadata> m_script_metadata GUARDED_BY(cs_wallet);
781781

782-
bool WriteKeyMetadata(const CKeyMetadata& meta, const CPubKey& pubkey, bool overwrite);
783-
784782
typedef std::map<unsigned int, CMasterKey> MasterKeyMap;
785783
MasterKeyMap mapMasterKeys;
786784
unsigned int nMasterKeyMaxID = 0;
@@ -1223,7 +1221,6 @@ class CWallet final : public CCryptoKeyStore, private interfaces::Chain::Notific
12231221
bool GetKeyOrigin(const CKeyID& keyid, KeyOriginInfo& info) const override;
12241222

12251223
/** Add a KeyOriginInfo to the wallet */
1226-
bool AddKeyOrigin(const CPubKey& pubkey, const KeyOriginInfo& info);
12271224
bool AddKeyOriginWithDB(WalletBatch& batch, const CPubKey& pubkey, const KeyOriginInfo& info);
12281225

12291226
friend struct WalletTestingSetup;

0 commit comments

Comments
 (0)