]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: acl: remove the use_count in acl keywords
authorWilly Tarreau <w@1wt.eu>
Sun, 31 Mar 2013 20:51:33 +0000 (22:51 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 3 Apr 2013 00:13:01 +0000 (02:13 +0200)
use_cnt is not used at all anymore, let's get rid of it.

include/types/acl.h
src/acl.c

index e1d0f126091c7b78b61d48db85e14790b48e1aee..9ea0cfa47d2d439bdaa618aa9fdc4d7c923ea531 100644 (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;
 };
 
 /*
index 9c75b97dc504bde26e442550aef07b90cd7bd2aa..d1c149f88fd8991e6c713abce2faadf8d01ff96c 100644 (file)
--- 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;