aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastian Falbesoner <[email protected]>2019-10-20 21:00:33 +0200
committerSebastian Falbesoner <[email protected]>2019-10-20 21:00:33 +0200
commit7ca68e1461376afc22a26268c80a7281522ed9eb (patch)
treeaacc8332f9a6b871f438b9715cc88d4debc60c21 /src
parentMerge #17157: doc: Added instructions for how to add an upsteam to forked repo (diff)
downloaddiscoin-7ca68e1461376afc22a26268c80a7281522ed9eb.tar.xz
discoin-7ca68e1461376afc22a26268c80a7281522ed9eb.zip
wallet: Remove unused GetLabelName
Diffstat (limited to 'src')
-rw-r--r--src/wallet/wallet.cpp15
-rw-r--r--src/wallet/wallet.h2
2 files changed, 0 insertions, 17 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp
index ca1f16f69..4a97e4197 100644
--- a/src/wallet/wallet.cpp
+++ b/src/wallet/wallet.cpp
@@ -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
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h
index 62641fcee..a1517a9db 100644
--- a/src/wallet/wallet.h
+++ b/src/wallet/wallet.h
@@ -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);