mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-10 17:17:06 +02: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);
|
int (*match)(struct sample *smp, struct acl_pattern *pattern);
|
||||||
/* must be after the config params */
|
/* must be after the config params */
|
||||||
struct sample_fetch *smp; /* the sample fetch we depend on */
|
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)
|
if (expr->args != empty_arg_list)
|
||||||
free(expr->args);
|
free(expr->args);
|
||||||
expr->kw->use_cnt--;
|
|
||||||
return expr;
|
return expr;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1052,7 +1051,6 @@ struct acl_expr *parse_acl_expr(const char **args, char **err)
|
|||||||
}
|
}
|
||||||
|
|
||||||
expr->kw = aclkw;
|
expr->kw = aclkw;
|
||||||
aclkw->use_cnt++;
|
|
||||||
LIST_INIT(&expr->patterns);
|
LIST_INIT(&expr->patterns);
|
||||||
expr->pattern_tree = EB_ROOT_UNIQUE;
|
expr->pattern_tree = EB_ROOT_UNIQUE;
|
||||||
expr->parse = aclkw->parse;
|
expr->parse = aclkw->parse;
|
||||||
|
Loading…
Reference in New Issue
Block a user