Skip to content

Commit 64d9507

Browse files
committed
[WIP] Remove unused statement in serialization
1 parent 6898213 commit 64d9507

File tree

5 files changed

+0
-6
lines changed

5 files changed

+0
-6
lines changed

src/addrdb.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ class CBanEntry
4848
template <typename Stream, typename Operation>
4949
inline void SerializationOp(Stream& s, Operation ser_action, int nType, int nVersion) {
5050
READWRITE(this->nVersion);
51-
nVersion = this->nVersion;
5251
READWRITE(nCreateTime);
5352
READWRITE(nBanUntil);
5453
READWRITE(banReason);

src/qt/recentrequeststablemodel.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ class RecentRequestEntry
3131
unsigned int nDate = date.toTime_t();
3232

3333
READWRITE(this->nVersion);
34-
nVersion = this->nVersion;
3534
READWRITE(id);
3635
READWRITE(nDate);
3736
READWRITE(recipient);

src/qt/walletmodel.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ class SendCoinsRecipient
7575
std::string sAuthenticatedMerchant = authenticatedMerchant.toStdString();
7676

7777
READWRITE(this->nVersion);
78-
nVersion = this->nVersion;
7978
READWRITE(sAddress);
8079
READWRITE(sLabel);
8180
READWRITE(amount);

src/wallet/wallet.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ class CMerkleTx : public CTransaction
194194
inline void SerializationOp(Stream& s, Operation ser_action, int nType, int nVersion) {
195195
std::vector<uint256> vMerkleBranch; // For compatibility with older versions.
196196
READWRITE(*(CTransaction*)this);
197-
nVersion = this->nVersion;
198197
READWRITE(hashBlock);
199198
READWRITE(vMerkleBranch);
200199
READWRITE(nIndex);

src/wallet/walletdb.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ class CHDChain
5757
inline void SerializationOp(Stream& s, Operation ser_action, int nType, int nVersion)
5858
{
5959
READWRITE(this->nVersion);
60-
nVersion = this->nVersion;
6160
READWRITE(nExternalChainCounter);
6261
READWRITE(masterKeyID);
6362
}
@@ -96,7 +95,6 @@ class CKeyMetadata
9695
template <typename Stream, typename Operation>
9796
inline void SerializationOp(Stream& s, Operation ser_action, int nType, int nVersion) {
9897
READWRITE(this->nVersion);
99-
nVersion = this->nVersion;
10098
READWRITE(nCreateTime);
10199
if (this->nVersion >= VERSION_WITH_HDDATA)
102100
{

0 commit comments

Comments
 (0)