summaryrefslogtreecommitdiff
path: root/sbin/pfctl
diff options
context:
space:
mode:
authorPatrick Kelsey <pkelsey@FreeBSD.org>2019-01-22 02:53:59 +0000
committerPatrick Kelsey <pkelsey@FreeBSD.org>2019-01-22 02:53:59 +0000
commit0e4ef871dc01e170e476c0317234dcff6e806446 (patch)
tree3ba1c3e694c7ea01b5bde3dfe20b138c107e9ef9 /sbin/pfctl
parent180b0dcbbb8489a335b907f83aac450924f293a8 (diff)
downloadsrc-test-0e4ef871dc01e170e476c0317234dcff6e806446.tar.gz
src-test-0e4ef871dc01e170e476c0317234dcff6e806446.zip
Remove unused function gsc_destroy()
gsc_destroy() is no longer needed as of r343287. MFC after: 1 week
Notes
Notes: svn path=/head/; revision=343296
Diffstat (limited to 'sbin/pfctl')
-rw-r--r--sbin/pfctl/pfctl_altq.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/sbin/pfctl/pfctl_altq.c b/sbin/pfctl/pfctl_altq.c
index f936b4b84de84..e5dad956f83fd 100644
--- a/sbin/pfctl/pfctl_altq.c
+++ b/sbin/pfctl/pfctl_altq.c
@@ -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);
@@ -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.