Parameters::printUnused: remove unused TypeTag tparam

This commit is contained in:
Arne Morten Kvarving committed 2024-08-09 11:30:27 +02:00
1 parent 85e48bd157
commit 6a43a7ef71
2 files changed
+3 -4

No files matched your search

+1 -2
View File
@@ -772,8 +772,7 @@ void printValues(std::ostream& os = std::cout)
*
* \return true if something was printed
*/
template <class TypeTag>
bool printUnused(std::ostream& os = std::cout)
inline bool printUnused(std::ostream& os = std::cout)
{
std::list<std::string> runTimeAllKeyList;
std::list<std::string> unknownKeyList;
+2 -2
View File
@@ -364,13 +364,13 @@ static inline int start(int argc, char **argv, bool registerParams=true)
// always print the list of specified but unused parameters
printSeparator =
printSeparator ||
Parameters::printUnused<TypeTag>();
Parameters::printUnused();
if (printSeparator)
std::cout << endParametersSeparator;
}
else
// always print the list of specified but unused parameters
if (Parameters::printUnused<TypeTag>())
if (Parameters::printUnused())
std::cout << endParametersSeparator;
}