Skip to content

Commit

Permalink
Remove unused ArgsManager::GetUnrecognizedSections
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenroose committed Jan 30, 2020
1 parent 02b3cf6 commit 7a5a412
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
19 changes: 0 additions & 19 deletions src/util/system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -359,25 +359,6 @@ const std::set<std::string> ArgsManager::GetUnsuitableSectionOnlyArgs() const
return unsuitables;
}


const std::set<std::string> ArgsManager::GetUnrecognizedSections() const
{
// Section names to be recognized in the config file.
static const std::set<std::string> available_sections{
CBaseChainParams::REGTEST,
CBaseChainParams::TESTNET,
CBaseChainParams::MAIN
};
std::set<std::string> diff;

LOCK(cs_args);
std::set_difference(
m_config_sections.begin(), m_config_sections.end(),
available_sections.begin(), available_sections.end(),
std::inserter(diff, diff.end()));
return diff;
}

void ArgsManager::SelectConfigNetwork(const std::string& network)
{
LOCK(cs_args);
Expand Down
5 changes: 0 additions & 5 deletions src/util/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,6 @@ class ArgsManager
*/
const std::set<std::string> GetUnsuitableSectionOnlyArgs() const;

/**
* Log warnings for unrecognized section names in the config file.
*/
const std::set<std::string> GetUnrecognizedSections() const;

/**
* Return a vector of strings of the given argument
*
Expand Down

0 comments on commit 7a5a412

Please sign in to comment.