From 6c9b342c306b9e17024762c4ba8f1c64e9810ee2 Mon Sep 17 00:00:00 2001 From: furszy Date: Wed, 18 Jan 2023 10:27:16 -0300 Subject: refactor: wallet, remove global 'ArgsManager' access we are not using it anymore --- src/wallet/wallet.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/wallet/wallet.h') diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index 073c4910ff..5ffac182a8 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -307,9 +307,6 @@ private: //! Unset the blank wallet flag and saves it to disk void UnsetBlankWalletFlag(WalletBatch& batch) override; - /** Provider of aplication-wide arguments. */ - const ArgsManager& m_args; - /** Interface for accessing chain state. */ interfaces::Chain* m_chain; @@ -373,9 +370,8 @@ public: unsigned int nMasterKeyMaxID = 0; /** Construct wallet with specified name and database implementation. */ - CWallet(interfaces::Chain* chain, const std::string& name, const ArgsManager& args, std::unique_ptr database) - : m_args(args), - m_chain(chain), + CWallet(interfaces::Chain* chain, const std::string& name, std::unique_ptr database) + : m_chain(chain), m_name(name), m_database(std::move(database)) { -- cgit v1.2.3