Remove dead code. (This loop counted the number of rules, but the count
was never used.) Reported by: pjd Approved by: rwatson
This commit is contained in:
parent
3dceafd0ad
commit
be93053d2f
@ -142,13 +142,6 @@ static void
|
||||
toast_rules(struct rulehead *head)
|
||||
{
|
||||
struct rule *rule;
|
||||
int i;
|
||||
|
||||
i = 0;
|
||||
for (rule = TAILQ_FIRST(head);
|
||||
rule != NULL;
|
||||
rule = TAILQ_NEXT(rule, r_entries))
|
||||
i++;
|
||||
|
||||
while ((rule = TAILQ_FIRST(head)) != NULL) {
|
||||
TAILQ_REMOVE(head, rule, r_entries);
|
||||
|
Loading…
Reference in New Issue
Block a user