diff --git a/include/types/acl.h b/include/types/acl.h index e1d0f1260..9ea0cfa47 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 9c75b97dc..d1c149f88 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;