From 30afbe338bdde1ed500d7e0b117b3281ac7a244e Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Mon, 14 Mar 2005 20:49:48 +0000 Subject: [PATCH] Remove ng_connect_t where it is unused. Probably it remained from ng_source.c. --- sys/netgraph/ng_eiface.c | 14 -------------- sys/netgraph/ng_etf.c | 12 ------------ sys/netgraph/ng_pppoe.c | 13 ------------- 3 files changed, 39 deletions(-) diff --git a/sys/netgraph/ng_eiface.c b/sys/netgraph/ng_eiface.c index 8791a847809..b1e687a168f 100644 --- a/sys/netgraph/ng_eiface.c +++ b/sys/netgraph/ng_eiface.c @@ -96,7 +96,6 @@ static ng_rcvmsg_t ng_eiface_rcvmsg; static ng_shutdown_t ng_eiface_rmnode; static ng_newhook_t ng_eiface_newhook; static ng_rcvdata_t ng_eiface_rcvdata; -static ng_connect_t ng_eiface_connect; static ng_disconnect_t ng_eiface_disconnect; /* Node type descriptor */ @@ -108,7 +107,6 @@ static struct ng_type typestruct = { .rcvmsg = ng_eiface_rcvmsg, .shutdown = ng_eiface_rmnode, .newhook = ng_eiface_newhook, - .connect = ng_eiface_connect, .rcvdata = ng_eiface_rcvdata, .disconnect = ng_eiface_disconnect, .cmdlist = ng_eiface_cmdlist @@ -559,18 +557,6 @@ ng_eiface_rmnode(node_p node) return (0); } - -/* - * This is called once we've already connected a new hook to the other node. - * It gives us a chance to balk at the last minute. - */ -static int -ng_eiface_connect(hook_p hook) -{ - /* be really amiable and just say "YUP that's OK by me! " */ - return (0); -} - /* * Hook disconnection */ diff --git a/sys/netgraph/ng_etf.c b/sys/netgraph/ng_etf.c index 5bc0f11b88b..11a0d96611b 100644 --- a/sys/netgraph/ng_etf.c +++ b/sys/netgraph/ng_etf.c @@ -67,7 +67,6 @@ static ng_constructor_t ng_etf_constructor; static ng_rcvmsg_t ng_etf_rcvmsg; static ng_shutdown_t ng_etf_shutdown; static ng_newhook_t ng_etf_newhook; -static ng_connect_t ng_etf_connect; static ng_rcvdata_t ng_etf_rcvdata; /* note these are both ng_rcvdata_t */ static ng_disconnect_t ng_etf_disconnect; @@ -120,7 +119,6 @@ static struct ng_type typestruct = { .rcvmsg = ng_etf_rcvmsg, .shutdown = ng_etf_shutdown, .newhook = ng_etf_newhook, - .connect = ng_etf_connect, .rcvdata = ng_etf_rcvdata, .disconnect = ng_etf_disconnect, .cmdlist = ng_etf_cmdlist, @@ -446,16 +444,6 @@ ng_etf_shutdown(node_p node) return (0); } -/* - * This is called once we've already connected a new hook to the other node. - * It gives us a chance to balk at the last minute. - */ -static int -ng_etf_connect(hook_p hook) -{ - return (0); -} - /* * Hook disconnection * diff --git a/sys/netgraph/ng_pppoe.c b/sys/netgraph/ng_pppoe.c index 5cd81f04dcd..82f995ac778 100644 --- a/sys/netgraph/ng_pppoe.c +++ b/sys/netgraph/ng_pppoe.c @@ -79,7 +79,6 @@ static ng_constructor_t ng_pppoe_constructor; static ng_rcvmsg_t ng_pppoe_rcvmsg; static ng_shutdown_t ng_pppoe_shutdown; static ng_newhook_t ng_pppoe_newhook; -static ng_connect_t ng_pppoe_connect; static ng_rcvdata_t ng_pppoe_rcvdata; static ng_disconnect_t ng_pppoe_disconnect; @@ -175,7 +174,6 @@ static struct ng_type typestruct = { .rcvmsg = ng_pppoe_rcvmsg, .shutdown = ng_pppoe_shutdown, .newhook = ng_pppoe_newhook, - .connect = ng_pppoe_connect, .rcvdata = ng_pppoe_rcvdata, .disconnect = ng_pppoe_disconnect, .cmdlist = ng_pppoe_cmds, @@ -1551,17 +1549,6 @@ ng_pppoe_shutdown(node_p node) return (0); } -/* - * This is called once we've already connected a new hook to the other node. - * It gives us a chance to balk at the last minute. - */ -static int -ng_pppoe_connect(hook_p hook) -{ - /* be really amiable and just say "YUP that's OK by me! " */ - return (0); -} - /* * Hook disconnection *