From: Diego Nieto Cid <[email protected]>

    ../../trans/new-fifo.c:186:8: warning: 'clean_fsys' defined but not used 
[-Wunused-function]

and its dependency fifo_trans_free.
---
 trans/new-fifo.c | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/trans/new-fifo.c b/trans/new-fifo.c
index 7880eb24..f274cd87 100644
--- a/trans/new-fifo.c
+++ b/trans/new-fifo.c
@@ -129,12 +129,6 @@ fifo_trans_create (struct fifo_trans *from, struct 
fifo_trans **trans)
   *trans = new;
 }
 
-static void
-fifo_trans_free (struct fifo_trans *trans)
-{
-  free (trans);
-}
-
 static error_t
 fifo_trans_start (struct fifo_trans *trans, mach_port_t requestor)
 {
@@ -182,14 +176,6 @@ main (int argc, char **argv)
   error_t err;
   mach_port_t bootstrap;
   struct fifo_trans *trans;
-  /* Clean up a fsys control node.  */
-  void clean_fsys (void *vfsys)
-    {
-      struct trivfs_control *fsys = vfsys;
-      if (fsys->hook)
-       fifo_trans_free (fsys->hook);
-      trivfs_clean_cntl (fsys);
-    }
 
   fifo_trans_create (0, &trans);
 
-- 
2.51.0


Reply via email to