diff options
| author | Ross Nicoll <[email protected]> | 2021-08-30 20:01:17 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-08-30 20:01:17 +0100 |
| commit | 97190c0ae660a2bd8f2aed6b132183c742afacbb (patch) | |
| tree | 8a9dfa47e5f33a32ee67ada78dd385078f53b983 | |
| parent | Merge pull request #2481 from chromatic/fix-freebsd-scrypt-compilation-gh2475 (diff) | |
| parent | Remove redundant explicitly defined copy ctors (diff) | |
| download | discoin-97190c0ae660a2bd8f2aed6b132183c742afacbb.tar.xz discoin-97190c0ae660a2bd8f2aed6b132183c742afacbb.zip | |
Merge pull request #2497 from patricklodder/1.14-remove-redundant-copy-ctors1.14.5-dev
1.14: Remove redundant explicitly defined copy constructors
| -rw-r--r-- | src/amount.h | 1 | ||||
| -rw-r--r-- | src/txmempool.cpp | 5 | ||||
| -rw-r--r-- | src/txmempool.h | 2 |
3 files changed, 0 insertions, 8 deletions
diff --git a/src/amount.h b/src/amount.h index 02d61fc9b..b80bcd1b2 100644 --- a/src/amount.h +++ b/src/amount.h @@ -44,7 +44,6 @@ public: explicit CFeeRate(const CAmount& _nSatoshisPerK): nSatoshisPerK(_nSatoshisPerK) { } /** Constructor for a fee rate in satoshis per kB. The size in bytes must not exceed (2^63 - 1)*/ CFeeRate(const CAmount& nFeePaid, size_t nBytes); - CFeeRate(const CFeeRate& other) { nSatoshisPerK = other.nSatoshisPerK; } /** * Return the wallet fee in koinus for the given size in bytes. */ diff --git a/src/txmempool.cpp b/src/txmempool.cpp index c6b679aec..bfb9e8519 100644 --- a/src/txmempool.cpp +++ b/src/txmempool.cpp @@ -45,11 +45,6 @@ CTxMemPoolEntry::CTxMemPoolEntry(const CTransactionRef& _tx, const CAmount& _nFe nSigOpCostWithAncestors = sigOpCost; } -CTxMemPoolEntry::CTxMemPoolEntry(const CTxMemPoolEntry& other) -{ - *this = other; -} - double CTxMemPoolEntry::GetPriority(unsigned int currentHeight) const { diff --git a/src/txmempool.h b/src/txmempool.h index 79209759f..7929f8a72 100644 --- a/src/txmempool.h +++ b/src/txmempool.h @@ -117,8 +117,6 @@ public: CAmount _inChainInputValue, bool spendsCoinbase, int64_t nSigOpsCost, LockPoints lp); - CTxMemPoolEntry(const CTxMemPoolEntry& other); - const CTransaction& GetTx() const { return *this->tx; } CTransactionRef GetSharedTx() const { return this->tx; } /** |