From 972060ce0e9746c979ce0ddeeb997121414c1d58 Mon Sep 17 00:00:00 2001 From: Gavin Andresen Date: Thu, 16 Feb 2012 15:00:16 -0500 Subject: bitcoind changes to stop storing settings in wallet.dat. --- src/main.h | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'src/main.h') diff --git a/src/main.h b/src/main.h index d9f976c217..ac6d624e40 100644 --- a/src/main.h +++ b/src/main.h @@ -77,13 +77,7 @@ extern CCriticalSection cs_setpwalletRegistered; extern std::set setpwalletRegistered; // Settings -extern int fGenerateBitcoins; extern int64 nTransactionFee; -extern int fLimitProcessors; -extern int nLimitProcessors; -extern int fMinimizeToTray; -extern int fMinimizeOnClose; -extern int fUseUPnP; @@ -127,20 +121,6 @@ std::string GetWarnings(std::string strFor); bool GetWalletFile(CWallet* pwallet, std::string &strWalletFileOut); -template -bool WriteSetting(const std::string& strKey, const T& value) -{ - bool fOk = false; - BOOST_FOREACH(CWallet* pwallet, setpwalletRegistered) - { - std::string strWalletFile; - if (!GetWalletFile(pwallet, strWalletFile)) - continue; - fOk |= CWalletDB(strWalletFile).WriteSetting(strKey, value); - } - return fOk; -} - class CDiskTxPos { -- cgit v1.2.3