diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -1468,9 +1468,6 @@ bool DelAddressBook(const CTxDestination &address); - const std::string &GetLabelName(const CScript &scriptPubKey) const - EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); - unsigned int GetKeyPoolSize() EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) { AssertLockHeld(cs_wallet); return setInternalKeyPool.size() + setExternalKeyPool.size(); diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -3852,21 +3852,6 @@ return WalletBatch(*database).EraseName(address); } -const std::string &CWallet::GetLabelName(const CScript &scriptPubKey) const { - CTxDestination address; - if (ExtractDestination(scriptPubKey, address) && - !scriptPubKey.IsUnspendable()) { - auto mi = mapAddressBook.find(address); - if (mi != mapAddressBook.end()) { - return mi->second.name; - } - } - // A scriptPubKey that doesn't have an entry in the address book is - // associated with the default label (""). - const static std::string DEFAULT_LABEL_NAME; - return DEFAULT_LABEL_NAME; -} - /** * Mark old keypool keys as used, and generate all new keys. */