Parameters::getLists: remove unused TypeTag tparam

This commit is contained in:
Arne Morten Kvarving 2024-07-05 14:30:00 +02:00
parent a5b4f827fe
commit 85e48bd157
2 changed files with 2 additions and 2 deletions

View File

@ -832,7 +832,7 @@ auto get(bool errorIfNotRegistered)
* The two arguments besides the TypeTag are assumed to be STL containers which store * The two arguments besides the TypeTag are assumed to be STL containers which store
* std::pair<std::string, std::string>. * std::pair<std::string, std::string>.
*/ */
template <class TypeTag, class Container> template <class Container>
void getLists(Container& usedParams, Container& unusedParams) void getLists(Container& usedParams, Container& unusedParams)
{ {
usedParams.clear(); usedParams.clear();

View File

@ -177,7 +177,7 @@ static inline int setupParameters_(int argc,
ParamList usedParams; ParamList usedParams;
ParamList unusedParams; ParamList unusedParams;
Parameters::getLists<TypeTag>(usedParams, unusedParams); Parameters::getLists(usedParams, unusedParams);
if (!allowUnused && !unusedParams.empty()) { if (!allowUnused && !unusedParams.empty()) {
if (myRank == 0) { if (myRank == 0) {
if (unusedParams.size() == 1) if (unusedParams.size() == 1)