mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 20:03:34 -03:00
wallet: Remove unused GetLabelName
This commit is contained in:
parent
b8f041af2d
commit
7ca68e1461
2 changed files with 0 additions and 17 deletions
|
@ -3468,21 +3468,6 @@ bool CWallet::DelAddressBook(const CTxDestination& address)
|
|||
return WalletBatch(*database).EraseName(EncodeDestination(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
|
||||
|
|
|
@ -1245,8 +1245,6 @@ public:
|
|||
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue