[wallet] Factor out GetWatchOnlyBalance()

Zcash: removes GetWatchOnlyBalance (unused)

(cherry picked from commit ef7bc8893c7a953953aa457736d79c28a4f45792)
This commit is contained in:
John Newbery 2018-06-27 13:43:25 -04:00 committed by Kris Nuttycombe
parent f7c57ecca4
commit 5fc98a3b34
2 changed files with 0 additions and 17 deletions

View File

@ -3201,22 +3201,6 @@ CAmount CWallet::GetImmatureBalance() const
return nTotal;
}
CAmount CWallet::GetWatchOnlyBalance() const
{
CAmount nTotal = 0;
{
LOCK2(cs_main, cs_wallet);
for (const auto& entry : mapWallet)
{
const CWalletTx* pcoin = &entry.second;
if (pcoin->IsTrusted())
nTotal += pcoin->GetAvailableWatchOnlyCredit();
}
}
return nTotal;
}
CAmount CWallet::GetUnconfirmedWatchOnlyBalance() const
{
CAmount nTotal = 0;

View File

@ -1181,7 +1181,6 @@ public:
CAmount GetBalance(const isminefilter& filter=ISMINE_SPENDABLE) const;
CAmount GetUnconfirmedBalance() const;
CAmount GetImmatureBalance() const;
CAmount GetWatchOnlyBalance() const;
CAmount GetUnconfirmedWatchOnlyBalance() const;
CAmount GetImmatureWatchOnlyBalance() const;
CAmount GetLegacyBalance(const isminefilter& filter, int minDepth, const std::string* account) const;