summaryrefslogtreecommitdiffstats
path: root/sys/geom
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-03-25 09:11:17 +0000
committerphk <phk@FreeBSD.org>2003-03-25 09:11:17 +0000
commit192c308033415c9a71c8da32cfc530928d14df1a (patch)
treeb8862be7c10cc4bb14ac6a8d3870e6528469ffb5 /sys/geom
parent45e43ab0e81f942643c94f98a1e9de187213fcc2 (diff)
downloadFreeBSD-src-192c308033415c9a71c8da32cfc530928d14df1a.zip
FreeBSD-src-192c308033415c9a71c8da32cfc530928d14df1a.tar.gz
g_class_by_name() was unused too.
Diffstat (limited to 'sys/geom')
-rw-r--r--sys/geom/geom_subr.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/sys/geom/geom_subr.c b/sys/geom/geom_subr.c
index d9d548b..6acf86e 100644
--- a/sys/geom/geom_subr.c
+++ b/sys/geom/geom_subr.c
@@ -571,19 +571,6 @@ g_spoil(struct g_provider *pp, struct g_consumer *cp)
g_post_event(EV_SPOILED, NULL, NULL, pp, cp);
}
-static struct g_class *
-g_class_by_name(const char *name)
-{
- struct g_class *mp;
-
- g_trace(G_T_TOPOLOGY, "g_class_by_name(%s)", name);
- g_topology_assert();
- LIST_FOREACH(mp, &g_classes, class)
- if (!strcmp(mp->name, name))
- return (mp);
- return (NULL);
-}
-
int
g_getattr__(const char *attr, struct g_consumer *cp, void *var, int len)
{
OpenPOWER on IntegriCloud