From de499b2386bf2e7a0a8b3eee3db9b8b57d9c2edb Mon Sep 17 00:00:00 2001 From: tobtoht Date: Wed, 12 Mar 2025 14:34:22 +0100 Subject: [PATCH] Coins: remove unused function --- src/libwalletqt/Coins.cpp | 10 ---------- src/libwalletqt/Coins.h | 1 - 2 files changed, 11 deletions(-) diff --git a/src/libwalletqt/Coins.cpp b/src/libwalletqt/Coins.cpp index f5540a29..7f4d452a 100644 --- a/src/libwalletqt/Coins.cpp +++ b/src/libwalletqt/Coins.cpp @@ -62,16 +62,6 @@ void Coins::refresh() emit refreshFinished(); } -void Coins::refreshUnlocked() -{ - for (CoinsInfo& c : m_rows) { - if (!c.unlocked) { - bool unlocked = m_wallet2->is_transfer_unlocked(c.unlockTime, c.blockHeight); - c.setUnlocked(unlocked); - } - } -} - quint64 Coins::count() const { return m_rows.length(); diff --git a/src/libwalletqt/Coins.h b/src/libwalletqt/Coins.h index a07ad876..f6fa2b12 100644 --- a/src/libwalletqt/Coins.h +++ b/src/libwalletqt/Coins.h @@ -24,7 +24,6 @@ Q_OBJECT public: void refresh(); - void refreshUnlocked(); quint64 count() const; const CoinsInfo& getRow(qsizetype i); -- 2.52.0