After this commit, UpdateCoins(const CTransaction& tx, CCoinsViewCache& inputs, int nHeight)
is no longer used:
0diff --git a/src/validation.cpp b/src/validation.cpp
1index 4504d2ca0a..c552577229 100644
2--- a/src/validation.cpp
3+++ b/src/validation.cpp
4@@ -1225,6 +1225,7 @@ void CChainState::InvalidBlockFound(CBlockIndex* pindex, const BlockValidationSt
5 }
6 }
7
8+/** Apply the effects of this transaction on the UTXO set represented by view */
9 void UpdateCoins(const CTransaction& tx, CCoinsViewCache& inputs, CTxUndo &txundo, int nHeight)
10 {
11 // mark inputs spent
12@@ -1240,12 +1241,6 @@ void UpdateCoins(const CTransaction& tx, CCoinsViewCache& inputs, CTxUndo &txund
13 AddCoins(inputs, tx, nHeight);
14 }
15
16-void UpdateCoins(const CTransaction& tx, CCoinsViewCache& inputs, int nHeight)
17-{
18- CTxUndo txundo;
19- UpdateCoins(tx, inputs, txundo, nHeight);
20-}
21-
22 bool CScriptCheck::operator()() {
23 const CScript &scriptSig = ptxTo->vin[nIn].scriptSig;
24 const CScriptWitness *witness = &ptxTo->vin[nIn].scriptWitness;
25diff --git a/src/validation.h b/src/validation.h
26index b2282828ce..caa0832dd3 100644
27--- a/src/validation.h
28+++ b/src/validation.h
29@@ -229,9 +229,6 @@ PackageMempoolAcceptResult ProcessNewPackage(CChainState& active_chainstate, CTx
30 const Package& txns, bool test_accept)
31 EXCLUSIVE_LOCKS_REQUIRED(cs_main);
32
33-/** Apply the effects of this transaction on the UTXO set represented by view */
34-void UpdateCoins(const CTransaction& tx, CCoinsViewCache& inputs, int nHeight);
35-
36 /** Transaction validation functions */
37
38 /**