From e43bc3ac3858d57969e86e400fa0c8f980373cc1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 8 Feb 2019 11:39:48 +0300 Subject: more slack removed --- src/mir_app/src/netlib.h | 6 ------ src/mir_app/src/netlibhttpproxy.cpp | 20 -------------------- 2 files changed, 26 deletions(-) (limited to 'src') diff --git a/src/mir_app/src/netlib.h b/src/mir_app/src/netlib.h index 89c67afded..2b03691dcc 100644 --- a/src/mir_app/src/netlib.h +++ b/src/mir_app/src/netlib.h @@ -162,12 +162,6 @@ void NetlibHttpSetLastErrorUsingHttpResult(int result); NETLIBHTTPREQUEST* NetlibHttpRecv(NetlibConnection* nlc, DWORD hflags, DWORD dflags, bool isConnect = false); void NetlibConnFromUrl(const char* szUrl, bool secur, NETLIBOPENCONNECTION &nloc); -// netlibhttpproxy.c -int NetlibInitHttpConnection(NetlibConnection *nlc, NetlibUser *nlu, NETLIBOPENCONNECTION *nloc); -int NetlibHttpGatewayRecv(NetlibConnection *nlc, char *buf, int len, int flags); -int NetlibHttpGatewayPost(NetlibConnection *nlc, const char *buf, int len, int flags); -void HttpGatewayRemovePacket(NetlibConnection *nlc, int pck); - // netliblog.c void NetlibLogShowOptions(void); void NetlibDumpData(NetlibConnection *nlc, PBYTE buf, int len, int sent, int flags); diff --git a/src/mir_app/src/netlibhttpproxy.cpp b/src/mir_app/src/netlibhttpproxy.cpp index 4e0d21e5a4..ccc791e702 100644 --- a/src/mir_app/src/netlibhttpproxy.cpp +++ b/src/mir_app/src/netlibhttpproxy.cpp @@ -41,26 +41,6 @@ RequestType; ///////////////////////////////////////////////////////////////////////////////////////// -int NetlibInitHttpConnection(HNETLIBCONN nlc, NetlibUser *nlu, NETLIBOPENCONNECTION *nloc) -{ - NETLIBHTTPREQUEST *nlhrReply = nullptr; - { - mir_cslock lck(nlc->csHttpSequenceNums); - nlc->nlhpi.firstGetSequence = 1; - nlc->nlhpi.firstPostSequence = 1; - } - - if (nlc->nlhpi.szHttpPostUrl == nullptr) { - SetLastError(ERROR_BAD_FORMAT); - return 0; - } - - // now properly connected - return 1; -} - -///////////////////////////////////////////////////////////////////////////////////////// - MIR_APP_DLL(int) Netlib_SetHttpProxyInfo(HNETLIBCONN nlc, const NETLIBHTTPPROXYINFO *nlhpi) { if (GetNetlibHandleType(nlc) != NLH_CONNECTION || nlhpi == nullptr || nlhpi->szHttpPostUrl == nullptr) { -- cgit v1.2.3