1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

Remove NetworkConfig's freehand options

This commit is contained in:
Stephen Shelton 2020-04-28 10:53:20 -06:00 committed by Jeff Becker
parent daf599b032
commit 2730491641
No known key found for this signature in database
GPG key ID: F357B3B42F6F9B05
2 changed files with 0 additions and 10 deletions

View file

@ -163,13 +163,6 @@ namespace llarp
conf.defineOption<std::string>(
"network", "strict-connect", false, "", AssignmentAcceptor(m_strictConnect));
// TODO: make sure this is documented... what does it mean though?
conf.addUndeclaredHandler(
"network", [&](std::string_view, std::string_view name, std::string_view value) {
m_options.emplace(name, value);
return true;
});
}
void

View file

@ -27,8 +27,6 @@ namespace llarp
using Config_impl_t = llarp::ConfigParser::Config_impl_t;
// TODO: don't use these maps. they're sloppy and difficult to follow
using FreehandOptions = std::unordered_multimap<std::string, std::string>;
/// Small struct to gather all parameters needed for config generation to reduce the number of
/// parameters that need to be passed around.
struct ConfigGenParameters
@ -74,7 +72,6 @@ namespace llarp
std::string m_strictConnect;
std::string m_ifname;
std::string m_ifaddr;
FreehandOptions m_options;
void
defineConfigOptions(ConfigDefinition& conf, const ConfigGenParameters& params);