From: Willy Tarreau Date: Sun, 31 Mar 2013 20:51:33 +0000 (+0200) Subject: MINOR: acl: remove the use_count in acl keywords X-Git-Tag: v1.5-dev18~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=acca90d8e5db53f9d23aac5606d6ff05602a19bc;p=thirdparty%2Fhaproxy.git MINOR: acl: remove the use_count in acl keywords use_cnt is not used at all anymore, let's get rid of it. --- diff --git a/include/types/acl.h b/include/types/acl.h index e1d0f12609..9ea0cfa47d 100644 --- a/include/types/acl.h +++ b/include/types/acl.h @@ -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; }; /* diff --git a/src/acl.c b/src/acl.c index 9c75b97dc5..d1c149f88f 100644 --- a/src/acl.c +++ b/src/acl.c @@ -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;