This commit is contained in:
Jonas Haag 2025-07-29 19:48:49 +02:00 committed by GitHub
commit acce41d32f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 67 deletions

View File

@ -118,10 +118,6 @@ namespace mamba
virtual void set_default_value() = 0;
virtual void set_rc_yaml_value(const YAML::Node& value, const std::string& source) = 0;
virtual void set_rc_yaml_values(
const std::map<std::string, YAML::Node>& values,
const std::vector<std::string>& sources
) = 0;
virtual void set_cli_yaml_value(const YAML::Node& value) = 0;
virtual void set_cli_yaml_value(const std::string& value) = 0;
virtual void set_yaml_value(const YAML::Node& value) = 0;
@ -177,10 +173,6 @@ namespace mamba
void set_default_value() override;
void set_rc_yaml_value(const YAML::Node& value, const std::string& source) override;
void set_rc_yaml_values(
const std::map<std::string, YAML::Node>& values,
const std::vector<std::string>& sources
) override;
void set_cli_yaml_value(const YAML::Node& value) override;
void set_cli_yaml_value(const std::string& value) override;
void set_yaml_value(const YAML::Node& value) override;
@ -195,10 +187,6 @@ namespace mamba
void dump_json(nlohmann::json& node, const std::string& name) const override;
void set_rc_value(const T& value, const std::string& source);
void set_rc_values(
const std::map<std::string, T>& mapped_values,
const std::vector<std::string>& sources
);
void set_value(const T& value);
using cli_config_type = detail::cli_config<T>;
@ -290,12 +278,6 @@ namespace mamba
template <class T>
Configurable&& set_rc_value(const T& value, const std::string& source);
template <class T>
Configurable&& set_rc_values(
const std::map<std::string, T>& mapped_values,
const std::vector<std::string>& sources
);
template <class T>
Configurable&& set_value(const T& value);
@ -336,10 +318,6 @@ namespace mamba
cli_storage_type<T>& get_cli_config();
Configurable&& set_rc_yaml_value(const YAML::Node& value, const std::string& source);
Configurable&& set_rc_yaml_values(
const std::map<std::string, YAML::Node>& values,
const std::vector<std::string>& sources
);
Configurable&& set_cli_yaml_value(const YAML::Node& value);
Configurable&& set_cli_yaml_value(const std::string& value);
Configurable&& set_yaml_value(const YAML::Node& value);
@ -526,20 +504,6 @@ namespace mamba
}
}
template <class T>
void ConfigurableImpl<T>::set_rc_yaml_values(
const std::map<std::string, YAML::Node>& values,
const std::vector<std::string>& sources
)
{
std::map<std::string, T> converted_values;
for (auto& y : values)
{
converted_values.insert({ y.first, y.second.as<T>() });
}
set_rc_values(converted_values, sources);
}
template <class T>
void ConfigurableImpl<T>::set_cli_yaml_value(const YAML::Node& value)
{
@ -636,18 +600,6 @@ namespace mamba
this->m_rc_configured = true;
}
template <class T>
void ConfigurableImpl<T>::set_rc_values(
const std::map<std::string, T>& mapped_values,
const std::vector<std::string>& sources
)
{
assert(mapped_values.size() == sources.size());
this->m_rc_sources.insert(this->m_rc_sources.end(), sources.begin(), sources.end());
m_rc_values.insert(mapped_values.begin(), mapped_values.end());
this->m_rc_configured = true;
}
template <class T>
void ConfigurableImpl<T>::set_value(const T& value)
{
@ -834,16 +786,6 @@ namespace mamba
return std::move(*this);
}
template <class T>
Configurable&& Configurable::set_rc_values(
const std::map<std::string, T>& mapped_values,
const std::vector<std::string>& sources
)
{
get_wrapped<T>().set_rc_values(mapped_values, sources);
return std::move(*this);
}
template <class T>
Configurable&& Configurable::set_value(const T& value)
{

View File

@ -315,15 +315,6 @@ namespace mamba
return std::move(*this);
}
Configurable&& Configurable::set_rc_yaml_values(
const std::map<std::string, YAML::Node>& values,
const std::vector<std::string>& sources
)
{
p_impl->set_rc_yaml_values(values, sources);
return std::move(*this);
}
Configurable&& Configurable::set_cli_yaml_value(const YAML::Node& value)
{
p_impl->set_cli_yaml_value(value);