Skip to content

Commit 7ca68e1

Browse files
committed
wallet: Remove unused GetLabelName
1 parent b8f041a commit 7ca68e1

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

src/wallet/wallet.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3468,21 +3468,6 @@ bool CWallet::DelAddressBook(const CTxDestination& address)
34683468
return WalletBatch(*database).EraseName(EncodeDestination(address));
34693469
}
34703470

3471-
const std::string& CWallet::GetLabelName(const CScript& scriptPubKey) const
3472-
{
3473-
CTxDestination address;
3474-
if (ExtractDestination(scriptPubKey, address) && !scriptPubKey.IsUnspendable()) {
3475-
auto mi = mapAddressBook.find(address);
3476-
if (mi != mapAddressBook.end()) {
3477-
return mi->second.name;
3478-
}
3479-
}
3480-
// A scriptPubKey that doesn't have an entry in the address book is
3481-
// associated with the default label ("").
3482-
const static std::string DEFAULT_LABEL_NAME;
3483-
return DEFAULT_LABEL_NAME;
3484-
}
3485-
34863471
/**
34873472
* Mark old keypool keys as used,
34883473
* and generate all new keys

src/wallet/wallet.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,8 +1245,6 @@ class CWallet final : public FillableSigningProvider, private interfaces::Chain:
12451245

12461246
bool DelAddressBook(const CTxDestination& address);
12471247

1248-
const std::string& GetLabelName(const CScript& scriptPubKey) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
1249-
12501248
unsigned int GetKeyPoolSize() EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
12511249
{
12521250
AssertLockHeld(cs_wallet);

0 commit comments

Comments
 (0)