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:
Colin Percival 2004-05-15 20:55:19 +00:00
parent 8ebcdbf707
commit 2b8b4f37be
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129268

View File

@ -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);