CLEANUP: acl: remove obsolete test in parse_acl_expr()

The ACL keyword returned by find_acl_kw() is checked for having a
valid ->parse() function. This dates back 2007 when ACLs were reworked
in order to differenciate old and new keywords. This check is
inappropriate and confusing since all keywords have a parser now.
This commit is contained in:
Willy Tarreau 2014-03-17 18:04:27 +01:00
parent e87cac16cc
commit 2049092f26

View file

@ -156,7 +156,7 @@ struct acl_expr *parse_acl_expr(const char **args, char **err, struct arg_list *
al->conv = NULL;
aclkw = find_acl_kw(args[0]);
if (aclkw && aclkw->parse) {
if (aclkw) {
/* OK we have a real ACL keyword */
/* build new sample expression for this ACL */