Commit 22bb8638e1e6a2dd65c0900a3eb5bf366916f06f

Authored by Jürgen Knödlseder
1 parent 0eb668fb

Remove "usethres" parameter checking in ctselect (is now done by parameter interface).

Showing 1 changed file with 0 additions and 8 deletions
src/ctselect/ctselect.cpp
... ... @@ -574,14 +574,6 @@ void ctselect::get_parameters(void)
574 574 m_expr = (*this)["expr"].string();
575 575 m_usethres = (*this)["usethres"].string();
576 576  
577   - // Check parameters (Kluge as the parfile interface does not yet check
578   - // parameters; this can be removed once this is done properly)
579   - if (m_usethres != "NONE" && m_usethres != "DEFAULT" && m_usethres != "USER") {
580   - std::string msg = "Parameter \"usethres\" must be one of \"NONE\", "
581   - "\"DEFAULT\" or \"USER\".";
582   - throw GException::invalid_value(G_GET_PARAMETERS, msg);
583   - }
584   -
585 577 // Optionally read ahead parameters so that they get correctly
586 578 // dumped into the log file
587 579 if (read_ahead()) {
... ...