From 8088a82a2a91d29967cef920ba780eecdf72518e Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 30 Nov 2013 03:19:38 +0100 Subject: Perform string-based lookup of method-related information only once --- src/config.y | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/config.y') diff --git a/src/config.y b/src/config.y index a79e8e9..68d41a4 100644 --- a/src/config.y +++ b/src/config.y @@ -350,10 +350,7 @@ protocol: TOK_STRING { ; method: TOK_STRING { - if (!fastd_config_method(ctx, conf, $1->str)) { - fastd_config_error(&@$, ctx, conf, filename, depth, "unsupported method"); - YYERROR; - } + fastd_config_method(ctx, conf, $1->str); } ; -- cgit v1.2.3