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:
Willy Tarreau 2013-03-31 22:51:33 +02:00
parent 5adeda1f63
commit acca90d8e5
2 changed files with 0 additions and 3 deletions

View File

@ -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;
};
/*

View File

@ -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;