Skip to content

Commit 7a0d8f4

Browse files
committed
[wallet] Remove GetAccountCreditDebit()
Function no longer used.
1 parent cf15ebd commit 7a0d8f4

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

src/wallet/walletdb.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -171,18 +171,6 @@ bool WalletBatch::WriteAccountingEntry(const uint64_t nAccEntryNum, const CAccou
171171
return WriteIC(std::make_pair(std::string("acentry"), std::make_pair(acentry.strAccount, nAccEntryNum)), acentry);
172172
}
173173

174-
CAmount WalletBatch::GetAccountCreditDebit(const std::string& strAccount)
175-
{
176-
std::list<CAccountingEntry> entries;
177-
ListAccountCreditDebit(strAccount, entries);
178-
179-
CAmount nCreditDebit = 0;
180-
for (const CAccountingEntry& entry : entries)
181-
nCreditDebit += entry.nCreditDebit;
182-
183-
return nCreditDebit;
184-
}
185-
186174
void WalletBatch::ListAccountCreditDebit(const std::string& strAccount, std::list<CAccountingEntry>& entries)
187175
{
188176
bool fAllAccounts = (strAccount == "*");

src/wallet/walletdb.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,6 @@ class WalletBatch
211211
/// Erase destination data tuple from wallet database
212212
bool EraseDestData(const std::string &address, const std::string &key);
213213

214-
CAmount GetAccountCreditDebit(const std::string& strAccount);
215214
void ListAccountCreditDebit(const std::string& strAccount, std::list<CAccountingEntry>& acentries);
216215

217216
DBErrors LoadWallet(CWallet* pwallet);

0 commit comments

Comments
 (0)