From 4760b3d0c3ef1eecfaf9b8b511416da41db97eee Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Sun, 6 Jan 2019 18:34:04 +0500 Subject: [PATCH] src/Cedar/AzureClient: remove unused function found by cppcheck [src/Cedar/AzureClient.c:526]: (style) The function 'AcGetEnable' is never used. --- src/Cedar/AzureClient.c | 12 ------------ src/Cedar/AzureClient.h | 1 - 2 files changed, 13 deletions(-) diff --git a/src/Cedar/AzureClient.c b/src/Cedar/AzureClient.c index 78d5e01b..e3376b8f 100644 --- a/src/Cedar/AzureClient.c +++ b/src/Cedar/AzureClient.c @@ -522,18 +522,6 @@ void AcMainThread(THREAD *thread, void *param) } } -// Get enabled or disabled VPN Azure client -bool AcGetEnable(AZURE_CLIENT *ac) -{ - // Validate arguments - if (ac == NULL) - { - return false; - } - - return ac->IsEnabled; -} - // Enable or disable VPN Azure client void AcSetEnable(AZURE_CLIENT *ac, bool enabled) { diff --git a/src/Cedar/AzureClient.h b/src/Cedar/AzureClient.h index ac246205..4fc31e51 100644 --- a/src/Cedar/AzureClient.h +++ b/src/Cedar/AzureClient.h @@ -166,7 +166,6 @@ void FreeAzureClient(AZURE_CLIENT *ac); void AcApplyCurrentConfig(AZURE_CLIENT *ac, DDNS_CLIENT_STATUS *ddns_status); void AcMainThread(THREAD *thread, void *param); void AcSetEnable(AZURE_CLIENT *ac, bool enabled); -bool AcGetEnable(AZURE_CLIENT *ac); void AcWaitForRequest(AZURE_CLIENT *ac, SOCK *s, AZURE_PARAM *param);