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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129268
@ -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