From 4afc7bc40d4ff4dd8205c757e3e851d813e17ee5 Mon Sep 17 00:00:00 2001 From: jeanpablo Date: Sun, 30 Aug 2026 15:39:01 +0100 Subject: [PATCH] wallet: remove unused COutput::ToString No callers. It was used by `COutput::print()`, which was removed in 3802224110 ("Remove all other print() methods"). --- src/wallet/coinselection.cpp | 5 ----- src/wallet/coinselection.h | 2 -- 2 files changed, 7 deletions(-) diff --git a/src/wallet/coinselection.cpp b/src/wallet/coinselection.cpp index 8d69957c302..51c50647871 100644 --- a/src/wallet/coinselection.cpp +++ b/src/wallet/coinselection.cpp @@ -1027,11 +1027,6 @@ bool SelectionResult::operator<(SelectionResult other) const return *m_waste < *other.m_waste || (*m_waste == *other.m_waste && m_selected_inputs.size() > other.m_selected_inputs.size()); } -std::string COutput::ToString() const -{ - return strprintf("COutput(%s, %d, %d) [%s]", outpoint.hash.ToString(), outpoint.n, depth, FormatMoney(txout.nValue)); -} - std::string GetAlgorithmName(const SelectionAlgorithm algo) { switch (algo) diff --git a/src/wallet/coinselection.h b/src/wallet/coinselection.h index a6206331acb..21fe9ff74bc 100644 --- a/src/wallet/coinselection.h +++ b/src/wallet/coinselection.h @@ -98,8 +98,6 @@ public: effective_value = txout.nValue - fee.value(); } - std::string ToString() const; - bool operator<(const COutput& rhs) const { return outpoint < rhs.outpoint;