From 22bb8638e1e6a2dd65c0900a3eb5bf366916f06f Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Sun, 6 Dec 2015 23:14:59 +0100 Subject: [PATCH] Remove "usethres" parameter checking in ctselect (is now done by parameter interface). --- src/ctselect/ctselect.cpp | 8 -------- 1 file changed, 0 insertions(+), 8 deletions(-) diff --git a/src/ctselect/ctselect.cpp b/src/ctselect/ctselect.cpp index cf7327c..3fb27fd 100644 --- a/src/ctselect/ctselect.cpp +++ b/src/ctselect/ctselect.cpp @@ -574,14 +574,6 @@ void ctselect::get_parameters(void) m_expr = (*this)["expr"].string(); m_usethres = (*this)["usethres"].string(); - // Check parameters (Kluge as the parfile interface does not yet check - // parameters; this can be removed once this is done properly) - if (m_usethres != "NONE" && m_usethres != "DEFAULT" && m_usethres != "USER") { - std::string msg = "Parameter \"usethres\" must be one of \"NONE\", " - "\"DEFAULT\" or \"USER\"."; - throw GException::invalid_value(G_GET_PARAMETERS, msg); - } - // Optionally read ahead parameters so that they get correctly // dumped into the log file if (read_ahead()) { -- libgit2 0.21.4