]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Remove two unused functions
authorDavid Sommerseth <davids@redhat.com>
Thu, 3 May 2012 09:10:40 +0000 (11:10 +0200)
committerDavid Sommerseth <davids@redhat.com>
Fri, 1 Jun 2012 21:25:57 +0000 (23:25 +0200)
Both is_persist_option() and is_stateful_restart() functions where never
used anywhere in the code.  Remove them.

Signed-off-by: David Sommerseth <davids@redhat.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: 1336036240-23838-1-git-send-email-dazo@users.sourceforge.net
URL: http://article.gmane.org/gmane.network.openvpn.devel/6402

src/openvpn/options.c
src/openvpn/options.h

index 4ee2f31852f4159a8c4323a802936c497fc81764..08f9cb27b8f52b6b600600a1e1b4c1b849b56581 100644 (file)
@@ -1050,22 +1050,6 @@ string_substitute (const char *src, int from, int to, struct gc_arena *gc)
   return ret;
 }
 
-bool
-is_persist_option (const struct options *o)
-{
-  return o->persist_tun
-      || o->persist_key
-      || o->persist_local_ip
-      || o->persist_remote_ip
-    ;
-}
-
-bool
-is_stateful_restart (const struct options *o)
-{
-  return is_persist_option (o) || connection_list_defined (o);
-}
-
 #ifdef ENABLE_SSL
 static uint8_t *
 parse_hash_fingerprint(const char *str, int nbytes, int msglevel, struct gc_arena *gc)
index 1be3dfaf4ac3a15bf99d22f143b533e4bf752c73..cc3e47a00e8e9fd8ec7ae08f9d90dc1286903632 100644 (file)
@@ -749,9 +749,6 @@ bool apply_push_options (struct options *options,
                         unsigned int *option_types_found,
                         struct env_set *es);
 
-bool is_persist_option (const struct options *o);
-bool is_stateful_restart (const struct options *o);
-
 void options_detach (struct options *o);
 
 void options_server_import (struct options *o,