aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2016-12-05 20:38:20 -0800
committerPieter Wuille <[email protected]>2016-12-21 18:18:28 -0800
commit91335ba389918966c94eeb7071b6c5a998bf1be8 (patch)
treedea18d9501526ba7053c12dfd678016362895131 /src
parentMake FillBlock consume txn_available to avoid shared_ptr copies (diff)
downloaddiscoin-91335ba389918966c94eeb7071b6c5a998bf1be8.tar.xz
discoin-91335ba389918966c94eeb7071b6c5a998bf1be8.zip
Remove unused MakeTransactionRef overloads
Diffstat (limited to 'src')
-rw-r--r--src/primitives/transaction.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/primitives/transaction.h b/src/primitives/transaction.h
index 4c4a238dd..8e5b42440 100644
--- a/src/primitives/transaction.h
+++ b/src/primitives/transaction.h
@@ -453,8 +453,6 @@ struct CMutableTransaction
typedef std::shared_ptr<const CTransaction> CTransactionRef;
static inline CTransactionRef MakeTransactionRef() { return std::make_shared<const CTransaction>(); }
template <typename Tx> static inline CTransactionRef MakeTransactionRef(Tx&& txIn) { return std::make_shared<const CTransaction>(std::forward<Tx>(txIn)); }
-static inline CTransactionRef MakeTransactionRef(const CTransactionRef& txIn) { return txIn; }
-static inline CTransactionRef MakeTransactionRef(CTransactionRef&& txIn) { return std::move(txIn); }
/** Compute the weight of a transaction, as defined by BIP 141 */
int64_t GetTransactionWeight(const CTransaction &tx);