Skip to content

Commit

Permalink
Remove unused function gsc_destroy()
Browse files Browse the repository at this point in the history
gsc_destroy() is no longer needed as of r343287.

MFC after:	1 week
  • Loading branch information
pkelsey committed Jan 22, 2019
1 parent 180b0dc commit 0e4ef87
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions sbin/pfctl/pfctl_altq.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ static int check_commit_fairq(int, int, struct pfctl_altq *);
static void gsc_add_sc(struct gen_sc *, struct service_curve *);
static int is_gsc_under_sc(struct gen_sc *,
struct service_curve *);
static void gsc_destroy(struct gen_sc *);
static struct segment *gsc_getentry(struct gen_sc *, double);
static int gsc_add_seg(struct gen_sc *, double, double, double,
double);
Expand Down Expand Up @@ -1129,17 +1128,6 @@ is_gsc_under_sc(struct gen_sc *gsc, struct service_curve *sc)
return (1);
}

static void
gsc_destroy(struct gen_sc *gsc)
{
struct segment *s;

while ((s = LIST_FIRST(gsc)) != NULL) {
LIST_REMOVE(s, _next);
free(s);
}
}

/*
* return a segment entry starting at x.
* if gsc has no entry starting at x, a new entry is created at x.
Expand Down

0 comments on commit 0e4ef87

Please sign in to comment.