From 2f6aa41d3d195b8a4413efd35d10fa6cbd6cf368 Mon Sep 17 00:00:00 2001 From: jeanpablo Date: Sun, 30 Aug 2026 15:39:01 +0100 Subject: [PATCH] wallet: remove unused WalletDatabase::m_refcount The counter is never incremented. Only the BDB implementation ever maintained it, and that went away in 04a7a7a28c ("build, wallet, doc: Remove BDB"). `AddRef()` and `RemoveRef()`, which the comment above the member describes as maintaining it, were removed in c0f3f3264f ("wallet: Remove unused db functions"), leaving the member behind. --- src/wallet/db.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/wallet/db.h b/src/wallet/db.h index b549e2a7514..6d76d14abf9 100644 --- a/src/wallet/db.h +++ b/src/wallet/db.h @@ -11,7 +11,6 @@ #include #include -#include #include #include #include @@ -136,9 +135,6 @@ public: /** Open the database if it is not already opened. */ virtual void Open() = 0; - //! Counts the number of active database users to be sure that the database is not closed while someone is using it - std::atomic m_refcount{0}; - /** Rewrite the entire database on disk */ virtual bool Rewrite() = 0;