]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Removed functions not being used anywhere
authorDavid Sommerseth <dazo@users.sourceforge.net>
Mon, 15 Nov 2010 07:58:36 +0000 (08:58 +0100)
committerDavid Sommerseth <dazo@users.sourceforge.net>
Thu, 18 Nov 2010 17:54:49 +0000 (18:54 +0100)
The GNU C compiler gave warnings about these functions in the patch
not being used anywhere.  Doing a git grep on the code turned out
there were no callers to these functions.  Taking these functions out,
as there is not good reason why to carry dead code.

Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
Acked-by: Peter Stuge <peter@stuge.se>
ps.c
sig.c

diff --git a/ps.c b/ps.c
index 003fb45eaff41bc585e3e213d4c6c9cac9e5481f..0aaef62844a288aa7ffe3ca436769908b2127537 100644 (file)
--- a/ps.c
+++ b/ps.c
@@ -234,18 +234,6 @@ port_share_sendmsg (const socket_descriptor_t sd,
     }
 }
 
-static int
-pc_list_len (struct proxy_connection *pc)
-{
-  int count = 0;
-  while (pc)
-    {
-      ++count;
-      pc = pc->next;
-    }
-  return count;
-}
-
 static void
 proxy_entry_close_sd (struct proxy_connection *pc, struct event_set *es)
 {
diff --git a/sig.c b/sig.c
index 4dd6b09208520e891dfa1e7110a88a259b997625..438f4e668601efb752beed1adb89effbdf39a671 100644 (file)
--- a/sig.c
+++ b/sig.c
@@ -185,15 +185,6 @@ signal_handler (const int signum)
   signal (signum, signal_handler);
 }
 
-/* temporary signal handler, before we are fully initialized */
-static void
-signal_handler_exit (const int signum)
-{
-  msg (M_FATAL,
-       "Signal %d (%s) received during initialization, exiting",
-       signum, signal_description (signum, NULL));
-}
-
 #endif
 
 /* set handlers for unix signals */