aboutsummaryrefslogtreecommitdiff
path: root/libbbot/manifest.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbbot/manifest.cxx')
-rw-r--r--libbbot/manifest.cxx25
1 files changed, 1 insertions, 24 deletions
diff --git a/libbbot/manifest.cxx b/libbbot/manifest.cxx
index a1cb325..db33021 100644
--- a/libbbot/manifest.cxx
+++ b/libbbot/manifest.cxx
@@ -536,7 +536,7 @@ namespace bbot
if (!config.empty ())
bad_name ("task configuration redefinition");
- config = parse_tab (v, check_config, "configuration");
+ config = parse_tab (v, [](const string&){}, "configuration");
if (config.empty ())
bad_value ("empty task configuration");
@@ -629,29 +629,6 @@ namespace bbot
}
void task_manifest::
- check_config (const string& s)
- {
- auto i (s.begin ());
- auto e (s.end ());
-
- // Iterate until the variable name end and check that it contains no
- // whitespaces.
- //
- for (; i != e; ++i)
- {
- char c (*i);
-
- if (c == ' ' || c == '\t') // Whitespace in name.
- throw invalid_argument ("expected variable assignment");
- else if (c == '=')
- break;
- }
-
- if (i == e)
- throw invalid_argument ("no variable value");
- }
-
- void task_manifest::
check_regex (const string& s)
{
try