Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jan 2019 02:54:00 +0000 (UTC)
From:      Patrick Kelsey <pkelsey@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r343296 - head/sbin/pfctl
Message-ID:  <201901220254.x0M2s099080077@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
-	}
 }
 
 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901220254.x0M2s099080077>