Browse Source

Remove no-longer used UI hints in bitcoin core

The Qt UI has its own associated structures for temporary transaction state / cache.
pull/1/head
Wladimir J. van der Laan 10 years ago
parent
commit
b6c837cbe1
  1. 2
      src/qt/transactionrecord.cpp
  2. 8
      src/wallet.h

2
src/qt/transactionrecord.cpp

@ -33,7 +33,7 @@ bool TransactionRecord::showTransaction(const CWalletTx &wtx) @@ -33,7 +33,7 @@ bool TransactionRecord::showTransaction(const CWalletTx &wtx)
QList<TransactionRecord> TransactionRecord::decomposeTransaction(const CWallet *wallet, const CWalletTx &wtx)
{
QList<TransactionRecord> parts;
int64 nTime = wtx.nTimeDisplayed = wtx.GetTxTime();
int64 nTime = wtx.GetTxTime();
int64 nCredit = wtx.GetCredit(true);
int64 nDebit = wtx.GetDebit();
int64 nNet = nCredit - nDebit;

8
src/wallet.h

@ -326,11 +326,6 @@ public: @@ -326,11 +326,6 @@ public:
mutable int64 nAvailableCreditCached;
mutable int64 nChangeCached;
// memory only UI hints
mutable unsigned int nTimeDisplayed;
mutable int nLinesDisplayed;
mutable char fConfirmedDisplayed;
CWalletTx()
{
Init(NULL);
@ -370,9 +365,6 @@ public: @@ -370,9 +365,6 @@ public:
nCreditCached = 0;
nAvailableCreditCached = 0;
nChangeCached = 0;
nTimeDisplayed = 0;
nLinesDisplayed = 0;
fConfirmedDisplayed = false;
}
IMPLEMENT_SERIALIZE

Loading…
Cancel
Save