Browse Source

[WIP] Remove unused statement in serialization

0.14
Pavel Janík 8 years ago
parent
commit
64d9507ea5
  1. 1
      src/addrdb.h
  2. 1
      src/qt/recentrequeststablemodel.h
  3. 1
      src/qt/walletmodel.h
  4. 1
      src/wallet/wallet.h
  5. 2
      src/wallet/walletdb.h

1
src/addrdb.h

@ -48,7 +48,6 @@ public: @@ -48,7 +48,6 @@ public:
template <typename Stream, typename Operation>
inline void SerializationOp(Stream& s, Operation ser_action, int nType, int nVersion) {
READWRITE(this->nVersion);
nVersion = this->nVersion;
READWRITE(nCreateTime);
READWRITE(nBanUntil);
READWRITE(banReason);

1
src/qt/recentrequeststablemodel.h

@ -31,7 +31,6 @@ public: @@ -31,7 +31,6 @@ public:
unsigned int nDate = date.toTime_t();
READWRITE(this->nVersion);
nVersion = this->nVersion;
READWRITE(id);
READWRITE(nDate);
READWRITE(recipient);

1
src/qt/walletmodel.h

@ -75,7 +75,6 @@ public: @@ -75,7 +75,6 @@ public:
std::string sAuthenticatedMerchant = authenticatedMerchant.toStdString();
READWRITE(this->nVersion);
nVersion = this->nVersion;
READWRITE(sAddress);
READWRITE(sLabel);
READWRITE(amount);

1
src/wallet/wallet.h

@ -194,7 +194,6 @@ public: @@ -194,7 +194,6 @@ public:
inline void SerializationOp(Stream& s, Operation ser_action, int nType, int nVersion) {
std::vector<uint256> vMerkleBranch; // For compatibility with older versions.
READWRITE(*(CTransaction*)this);
nVersion = this->nVersion;
READWRITE(hashBlock);
READWRITE(vMerkleBranch);
READWRITE(nIndex);

2
src/wallet/walletdb.h

@ -57,7 +57,6 @@ public: @@ -57,7 +57,6 @@ public:
inline void SerializationOp(Stream& s, Operation ser_action, int nType, int nVersion)
{
READWRITE(this->nVersion);
nVersion = this->nVersion;
READWRITE(nExternalChainCounter);
READWRITE(masterKeyID);
}
@ -96,7 +95,6 @@ public: @@ -96,7 +95,6 @@ public:
template <typename Stream, typename Operation>
inline void SerializationOp(Stream& s, Operation ser_action, int nType, int nVersion) {
READWRITE(this->nVersion);
nVersion = this->nVersion;
READWRITE(nCreateTime);
if (this->nVersion >= VERSION_WITH_HDDATA)
{

Loading…
Cancel
Save