Skip to content

Commit f6d1eb9

Browse files
committed
chore: drop extraneous unused ApplyStats() definition
1 parent df9c926 commit f6d1eb9

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/node/coinstats.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -91,19 +91,6 @@ static void ApplyStats(CCoinsStats& stats, const uint256& hash, const std::map<u
9191
}
9292
}
9393

94-
static void ApplyStats(CCoinsStats& stats, std::nullptr_t, const uint256& hash, const std::map<uint32_t, Coin>& outputs)
95-
{
96-
assert(!outputs.empty());
97-
stats.nTransactions++;
98-
for (const auto& output : outputs) {
99-
stats.nTransactionOutputs++;
100-
if (stats.total_amount.has_value()) {
101-
stats.total_amount = CheckedAdd(*stats.total_amount, output.second.out.nValue);
102-
}
103-
stats.nBogoSize += GetBogoSize(output.second.out.scriptPubKey);
104-
}
105-
}
106-
10794
//! Calculate statistics about the unspent transaction output set
10895
template <typename T>
10996
static bool GetUTXOStats(CCoinsView* view, BlockManager& blockman, CCoinsStats& stats, T hash_obj, const std::function<void()>& interruption_point, const CBlockIndex* pindex)

0 commit comments

Comments
 (0)