aboutsummaryrefslogtreecommitdiff
path: root/src/chainparams.cpp
diff options
context:
space:
mode:
authorJorge Timón <jtimon@jtimon.cc>2015-11-28 15:04:35 +0100
committerJorge Timón <jtimon@jtimon.cc>2017-05-03 18:15:54 +0200
commit2351a064a604f5aa961a38a3920289546dada16f (patch)
tree6878027b39f34a4de14fa14b89304e11be322357 /src/chainparams.cpp
parentf87f3626e35e7edae37e14f5156809325ad18cb2 (diff)
Chainparams: Get rid of CChainParams& Params(std::string)
Diffstat (limited to 'src/chainparams.cpp')
-rw-r--r--src/chainparams.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/chainparams.cpp b/src/chainparams.cpp
index 2d54dfa543..5055fb3e0a 100644
--- a/src/chainparams.cpp
+++ b/src/chainparams.cpp
@@ -333,7 +333,6 @@ public:
};
static std::unique_ptr<CChainParams> globalChainParams;
-static std::unique_ptr<CChainParams> globalSwitchingChainParams;
const CChainParams &Params() {
assert(globalChainParams);
@@ -351,12 +350,6 @@ std::unique_ptr<CChainParams> CreateChainParams(const std::string& chain)
throw std::runtime_error(strprintf("%s: Unknown chain %s.", __func__, chain));
}
-const CChainParams& Params(const std::string& chain)
-{
- globalSwitchingChainParams = CreateChainParams(chain);
- return *globalSwitchingChainParams;
-}
-
void SelectParams(const std::string& network)
{
SelectBaseParams(network);