From dcf5c57fc26863f3bb30b702804931a643e7b398 Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Sun, 6 Jan 2019 23:31:29 +0500 Subject: [PATCH] src/Cedar/Proto_IPsec" remove unused function found by cppcheck [src/Cedar/Proto_IPsec.c:120]: (style) The function 'IPSecSetDisable' is never used. --- src/Cedar/Proto_IPsec.c | 7 ------- src/Cedar/Proto_IPsec.h | 1 - 2 files changed, 8 deletions(-) diff --git a/src/Cedar/Proto_IPsec.c b/src/Cedar/Proto_IPsec.c index 0672ff2a..03c5dec9 100644 --- a/src/Cedar/Proto_IPsec.c +++ b/src/Cedar/Proto_IPsec.c @@ -116,13 +116,6 @@ static bool ipsec_disable = false; -// Disabling whole IPsec -void IPSecSetDisable(bool b) -{ - ipsec_disable = b; -} - - // Monitor the IPsec service of the OS, and stop it if it will conflict void IPsecOsServiceCheckThread(THREAD *t, void *p) { diff --git a/src/Cedar/Proto_IPsec.h b/src/Cedar/Proto_IPsec.h index 20b484ce..31fb89eb 100644 --- a/src/Cedar/Proto_IPsec.h +++ b/src/Cedar/Proto_IPsec.h @@ -198,7 +198,6 @@ void AddEtherIPId(IPSEC_SERVER *s, ETHERIP_ID *id); bool DeleteEtherIPId(IPSEC_SERVER *s, char *id_str); void IPsecOsServiceCheckThread(THREAD *t, void *p); bool IPsecCheckOsService(IPSEC_SERVER *s); -void IPSecSetDisable(bool b); #endif // PROTO_IPSEC_H