mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-25 06:53:03 +00:00
MINOR: acl: remove the use_count in acl keywords
use_cnt is not used at all anymore, let's get rid of it.
This commit is contained in:
parent
5adeda1f63
commit
acca90d8e5
@ -168,7 +168,6 @@ struct acl_keyword {
|
||||
int (*match)(struct sample *smp, struct acl_pattern *pattern);
|
||||
/* must be after the config params */
|
||||
struct sample_fetch *smp; /* the sample fetch we depend on */
|
||||
int use_cnt;
|
||||
};
|
||||
|
||||
/*
|
||||
|
@ -928,7 +928,6 @@ static struct acl_expr *prune_acl_expr(struct acl_expr *expr)
|
||||
|
||||
if (expr->args != empty_arg_list)
|
||||
free(expr->args);
|
||||
expr->kw->use_cnt--;
|
||||
return expr;
|
||||
}
|
||||
|
||||
@ -1052,7 +1051,6 @@ struct acl_expr *parse_acl_expr(const char **args, char **err)
|
||||
}
|
||||
|
||||
expr->kw = aclkw;
|
||||
aclkw->use_cnt++;
|
||||
LIST_INIT(&expr->patterns);
|
||||
expr->pattern_tree = EB_ROOT_UNIQUE;
|
||||
expr->parse = aclkw->parse;
|
||||
|
Loading…
Reference in New Issue
Block a user