svn commit: r343296 - head/sbin/pfctl
Patrick Kelsey
pkelsey at FreeBSD.org
Tue Jan 22 02:54:00 UTC 2019
Author: pkelsey
Date: Tue Jan 22 02:53:59 2019
New Revision: 343296
URL: https://svnweb.freebsd.org/changeset/base/343296
Log:
Remove unused function gsc_destroy()
gsc_destroy() is no longer needed as of r343287.
MFC after: 1 week
Modified:
head/sbin/pfctl/pfctl_altq.c
Modified: head/sbin/pfctl/pfctl_altq.c
==============================================================================
--- head/sbin/pfctl/pfctl_altq.c Tue Jan 22 02:13:33 2019 (r343295)
+++ head/sbin/pfctl/pfctl_altq.c Tue Jan 22 02:53:59 2019 (r343296)
@@ -93,7 +93,6 @@ static int check_commit_fairq(int, int, struct pfctl_a
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);
@@ -1127,17 +1126,6 @@ is_gsc_under_sc(struct gen_sc *gsc, struct service_cur
return (0);
}
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);
- }
}
/*
More information about the svn-src-all
mailing list