From a7fab9cd42928d26450b95cb6b900eb00a719531 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 8 Jan 2009 15:27:03 -0800 Subject: [PATCH] Remove unused functions. Found by -Wmissing-prototypes. --- udatapath/datapath.c | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/udatapath/datapath.c b/udatapath/datapath.c index fdd4d5e9..8e884a43 100644 --- a/udatapath/datapath.c +++ b/udatapath/datapath.c @@ -115,7 +115,6 @@ static void remote_destroy(struct remote *); static void update_port_flags(struct datapath *, const struct ofp_port_mod *); static int update_port_status(struct sw_port *p); static void send_port_status(struct sw_port *p, uint8_t status); -static void del_switch_port(struct sw_port *p); /* Buffers are identified by a 31-bit opaque ID. We divide the ID * into a buffer number (low bits) and a cookie (high bits). The buffer number @@ -487,32 +486,6 @@ dp_wait(struct datapath *dp) } } -/* Delete 'p' from switch. */ -static void -del_switch_port(struct sw_port *p) -{ - send_port_status(p, OFPPR_DELETE); - netdev_close(p->netdev); - p->netdev = NULL; - list_remove(&p->node); -} - -void -dp_destroy(struct datapath *dp) -{ - struct sw_port *p, *n; - - if (!dp) { - return; - } - - LIST_FOR_EACH_SAFE (p, n, struct sw_port, node, &dp->port_list) { - del_switch_port(p); - } - chain_destroy(dp->chain); - free(dp); -} - /* Send packets out all the ports except the originating one. If the * "flood" argument is set, don't send out ports with flooding disabled. */ -- 2.30.2