From 162a181b04b828004c57f10b602987b9a9c5f1e4 Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Sun, 6 Jan 2019 23:22:08 +0500 Subject: [PATCH] src/Cedar/Protocol: remove unused function found by cppcheck [src/Cedar/Protocol.c:6643]: (style) The function 'ProxyConnectEx' is never used. --- src/Cedar/Protocol.c | 9 --------- src/Cedar/Protocol.h | 4 ---- 2 files changed, 13 deletions(-) diff --git a/src/Cedar/Protocol.c b/src/Cedar/Protocol.c index df586b0e..21ff7b82 100644 --- a/src/Cedar/Protocol.c +++ b/src/Cedar/Protocol.c @@ -6640,15 +6640,6 @@ failure: } // Connect through a proxy -SOCK *ProxyConnectEx(CONNECTION *c, char *proxy_host_name, UINT proxy_port, - char *server_host_name, UINT server_port, - char *username, char *password, bool additional_connect, - bool *cancel_flag, void *hWnd) -{ - return ProxyConnectEx2(c, proxy_host_name, proxy_port, - server_host_name, server_port, username, password, additional_connect, - cancel_flag, hWnd, 0); -} SOCK *ProxyConnectEx2(CONNECTION *c, char *proxy_host_name, UINT proxy_port, char *server_host_name, UINT server_port, char *username, char *password, bool additional_connect, diff --git a/src/Cedar/Protocol.h b/src/Cedar/Protocol.h index a15d3871..735497f5 100644 --- a/src/Cedar/Protocol.h +++ b/src/Cedar/Protocol.h @@ -257,10 +257,6 @@ SOCK *ClientAdditionalConnectToServer(CONNECTION *c); bool ClientUploadAuth2(CONNECTION *c, SOCK *s); bool GetSessionKeyFromPack(PACK *p, UCHAR *session_key, UINT *session_key_32); -SOCK *ProxyConnectEx(CONNECTION *c, char *proxy_host_name, UINT proxy_port, - char *server_host_name, UINT server_port, - char *username, char *password, bool additional_connect, - bool *cancel_flag, void *hWnd); SOCK *ProxyConnectEx2(CONNECTION *c, char *proxy_host_name, UINT proxy_port, char *server_host_name, UINT server_port, char *username, char *password, bool additional_connect,