summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/netlib.h6
-rw-r--r--src/mir_app/src/netlibhttpproxy.cpp20
2 files changed, 0 insertions, 26 deletions
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) {