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
8ebcdbf707
commit
2b8b4f37be
@ -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