Skip to content

Commit

Permalink
[WIP] Remove unused statement in serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
paveljanik committed Sep 9, 2016
1 parent 6898213 commit 64d9507
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/addrdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ class CBanEntry
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);
Expand Down
1 change: 0 additions & 1 deletion src/qt/recentrequeststablemodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ class RecentRequestEntry
unsigned int nDate = date.toTime_t();

READWRITE(this->nVersion);
nVersion = this->nVersion;
READWRITE(id);
READWRITE(nDate);
READWRITE(recipient);
Expand Down
1 change: 0 additions & 1 deletion src/qt/walletmodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ class SendCoinsRecipient
std::string sAuthenticatedMerchant = authenticatedMerchant.toStdString();

READWRITE(this->nVersion);
nVersion = this->nVersion;
READWRITE(sAddress);
READWRITE(sLabel);
READWRITE(amount);
Expand Down
1 change: 0 additions & 1 deletion src/wallet/wallet.h
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ class CMerkleTx : public CTransaction
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);
Expand Down
2 changes: 0 additions & 2 deletions src/wallet/walletdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ class CHDChain
inline void SerializationOp(Stream& s, Operation ser_action, int nType, int nVersion)
{
READWRITE(this->nVersion);
nVersion = this->nVersion;
READWRITE(nExternalChainCounter);
READWRITE(masterKeyID);
}
Expand Down Expand Up @@ -96,7 +95,6 @@ class CKeyMetadata
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)
{
Expand Down

0 comments on commit 64d9507

Please sign in to comment.