Skip to content

Commit 027b6f1

Browse files
committed
Remove unused ArgsManager::GetUnrecognizedSections
1 parent 28ffeeb commit 027b6f1

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

src/util/system.cpp

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -359,25 +359,6 @@ const std::set<std::string> ArgsManager::GetUnsuitableSectionOnlyArgs() const
359359
return unsuitables;
360360
}
361361

362-
363-
const std::set<std::string> ArgsManager::GetUnrecognizedSections() const
364-
{
365-
// Section names to be recognized in the config file.
366-
static const std::set<std::string> available_sections{
367-
CBaseChainParams::REGTEST,
368-
CBaseChainParams::TESTNET,
369-
CBaseChainParams::MAIN
370-
};
371-
std::set<std::string> diff;
372-
373-
LOCK(cs_args);
374-
std::set_difference(
375-
m_config_sections.begin(), m_config_sections.end(),
376-
available_sections.begin(), available_sections.end(),
377-
std::inserter(diff, diff.end()));
378-
return diff;
379-
}
380-
381362
void ArgsManager::SelectConfigNetwork(const std::string& network)
382363
{
383364
LOCK(cs_args);

src/util/system.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,6 @@ class ArgsManager
171171
*/
172172
const std::set<std::string> GetUnsuitableSectionOnlyArgs() const;
173173

174-
/**
175-
* Log warnings for unrecognized section names in the config file.
176-
*/
177-
const std::set<std::string> GetUnrecognizedSections() const;
178-
179174
/**
180175
* Return a vector of strings of the given argument
181176
*

0 commit comments

Comments
 (0)