From 057984b87ce1ddac11bc024c7580cc3378cb065d Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Sun, 6 Jan 2019 23:34:10 +0500 Subject: [PATCH] src/Cedar/Proto_SSTP: remove unused function found by cppcheck [src/Cedar/Proto_SSTP.c:126]: (style) The function 'SetNoSstp' is never used. --- src/Cedar/Proto_SSTP.c | 6 ------ src/Cedar/Proto_SSTP.h | 1 - 2 files changed, 7 deletions(-) diff --git a/src/Cedar/Proto_SSTP.c b/src/Cedar/Proto_SSTP.c index cbdda0df..f50cd42e 100644 --- a/src/Cedar/Proto_SSTP.c +++ b/src/Cedar/Proto_SSTP.c @@ -122,12 +122,6 @@ bool GetNoSstp() return g_no_sstp; } -// Set the SSTP disabling flag -void SetNoSstp(bool b) -{ - g_no_sstp = b; -} - // Process the SSTP control packet reception void SstpProcessControlPacket(SSTP_SERVER *s, SSTP_PACKET *p) { diff --git a/src/Cedar/Proto_SSTP.h b/src/Cedar/Proto_SSTP.h index da6b7392..c2c9f598 100644 --- a/src/Cedar/Proto_SSTP.h +++ b/src/Cedar/Proto_SSTP.h @@ -257,6 +257,5 @@ SSTP_PACKET *SstpNewControlPacket(USHORT message_type); SSTP_PACKET *SstpNewControlPacketWithAnAttribute(USHORT message_type, SSTP_ATTRIBUTE *a); void SstpSendPacket(SSTP_SERVER *s, SSTP_PACKET *p); bool GetNoSstp(); -void SetNoSstp(bool b); #endif // PROTO_SSTP_H