Parameter::get: remove unused overload

This commit is contained in:
Arne Morten Kvarving 2024-04-04 15:12:30 +02:00
parent 5dea27c960
commit 72322ec6ff

View File

@ -103,9 +103,6 @@ struct ParamInfo
}; };
// forward declaration // forward declaration
template <class TypeTag, class ParamType, class PropTag>
const ParamType get(const char *paramName,
bool errorIfNotRegistered = true);
template <class TypeTag, class ParamType> template <class TypeTag, class ParamType>
const ParamType get(const char *paramName, const ParamType get(const char *paramName,
const ParamType& defaultValue, const ParamType& defaultValue,
@ -888,13 +885,6 @@ class Param
using ParamsMeta = GetProp<TypeTag, Properties::ParameterMetaData>; using ParamsMeta = GetProp<TypeTag, Properties::ParameterMetaData>;
public: public:
template <class ParamType, class PropTag>
static ParamType get(const char* paramName,
bool errorIfNotRegistered = true)
{
return retrieve_<ParamType>(paramName, getPropValue<TypeTag, PropTag>(), errorIfNotRegistered);
}
template <class ParamType> template <class ParamType>
static ParamType get(const char* paramName, static ParamType get(const char* paramName,
const ParamType& defaultValue, const ParamType& defaultValue,
@ -1016,13 +1006,6 @@ private:
} }
}; };
template <class TypeTag, class ParamType, class PropTag>
const ParamType get(const char* paramName, bool errorIfNotRegistered)
{
return Param<TypeTag>::template get<ParamType, PropTag>(paramName,
errorIfNotRegistered);
}
template <class TypeTag, class ParamType> template <class TypeTag, class ParamType>
const ParamType get(const char* paramName, const ParamType& defaultValue, bool errorIfNotRegistered) const ParamType get(const char* paramName, const ParamType& defaultValue, bool errorIfNotRegistered)
{ {