diff options
| author | George Hazan <george.hazan@gmail.com> | 2025-06-09 15:48:22 +0300 |
|---|---|---|
| committer | George Hazan <george.hazan@gmail.com> | 2025-06-09 15:48:22 +0300 |
| commit | a98c272f27a861ff49af6c521b074b5307e8b758 (patch) | |
| tree | 60702bdb0a8b8d97ba01563cb3f81a24df5009c3 | |
| parent | c1cac0e54f6c6e906cacc4538c79930b7c85669b (diff) | |
unused function removed
| -rw-r--r-- | include/m_netlib.h | 20 | ||||
| -rw-r--r-- | libs/win32/mir_app.lib | bin | 309936 -> 309676 bytes | |||
| -rw-r--r-- | libs/win64/mir_app.lib | bin | 310136 -> 309896 bytes | |||
| -rw-r--r-- | src/mir_app/src/mir_app.def | 1 | ||||
| -rw-r--r-- | src/mir_app/src/mir_app64.def | 1 | ||||
| -rw-r--r-- | src/mir_app/src/netlib.cpp | 1 | ||||
| -rw-r--r-- | src/mir_app/src/netlib.h | 1 | ||||
| -rw-r--r-- | src/mir_app/src/netlib_httpproxy.cpp | 11 |
8 files changed, 0 insertions, 35 deletions
diff --git a/include/m_netlib.h b/include/m_netlib.h index 3121ce633e..8ea5ee7b0d 100644 --- a/include/m_netlib.h +++ b/include/m_netlib.h @@ -73,26 +73,6 @@ struct NETLIBUSER EXTERN_C MIR_APP_DLL(HNETLIBUSER) Netlib_RegisterUser(const NETLIBUSER *pDescr);
-/////////////////////////////////////////////////////////////////////////////////////////
-// Assign a Netlib user handle a set of dynamic HTTP headers to be used with all
-//
-// HTTP connections that enable the HTTP-use-sticky headers flag.
-// The headers persist until cleared with lParam = NULL.
-//
-// All memory should be allocated by the caller using malloc() from MS_SYSTEM_GET_MMI
-// Once it has passed to Netlib, Netlib is the owner of it, the caller should not refer to the memory
-// In any way after this point.
-//
-// NOTE: The szHeaders parameter should be a NULL terminated string following the HTTP header syntax.
-// This string will be injected verbatim, thus the user should be aware of setting strings that are not
-// headers. This service is NOT THREAD SAFE, only a single thread is expected to set the headers and a single
-// thread reading the pointer internally, stopping race conditions and mutual exclusion don't happen.
-//
-// Version 0.3.2a+ (2003/10/27)
-//
-
-EXTERN_C MIR_APP_DLL(int) Netlib_SetStickyHeaders(HNETLIBUSER nlu, const char *szHeaders);
-
/* Notes on HTTP gateway usage
When a connection is initiated through an HTTP proxy using
MS_NETLIB_OPENCONNECTION, netlib will GET nlu.szHttpGatewayHello and read
diff --git a/libs/win32/mir_app.lib b/libs/win32/mir_app.lib Binary files differindex 1d62f56001..e6e0d13dab 100644 --- a/libs/win32/mir_app.lib +++ b/libs/win32/mir_app.lib diff --git a/libs/win64/mir_app.lib b/libs/win64/mir_app.lib Binary files differindex 6d056feb3e..cb63777a2a 100644 --- a/libs/win64/mir_app.lib +++ b/libs/win64/mir_app.lib diff --git a/src/mir_app/src/mir_app.def b/src/mir_app/src/mir_app.def index edeb85fa99..28135879f0 100644 --- a/src/mir_app/src/mir_app.def +++ b/src/mir_app/src/mir_app.def @@ -266,7 +266,6 @@ Netlib_AddressToString @369 Netlib_StringToAddress @370
Netlib_Select @371
Netlib_SelectEx @372
-Netlib_SetStickyHeaders @374
Netlib_GetSocket @376
Netlib_StartSsl @377
Netlib_GetConnectionInfo @378
diff --git a/src/mir_app/src/mir_app64.def b/src/mir_app/src/mir_app64.def index 0ce710a638..aa5b4e4d4a 100644 --- a/src/mir_app/src/mir_app64.def +++ b/src/mir_app/src/mir_app64.def @@ -266,7 +266,6 @@ Netlib_AddressToString @369 Netlib_StringToAddress @370
Netlib_Select @371
Netlib_SelectEx @372
-Netlib_SetStickyHeaders @374
Netlib_GetSocket @376
Netlib_StartSsl @377
Netlib_GetConnectionInfo @378
diff --git a/src/mir_app/src/netlib.cpp b/src/mir_app/src/netlib.cpp index 41dd1c3131..ae598ef1f8 100644 --- a/src/mir_app/src/netlib.cpp +++ b/src/mir_app/src/netlib.cpp @@ -299,7 +299,6 @@ MIR_APP_DLL(int) Netlib_CloseHandle(HANDLE hNetlib) NetlibFreeUserSettingsStruct(&nlu->settings);
mir_free(nlu->user.szSettingsModule);
mir_free(nlu->user.szDescriptiveName.a);
- mir_free(nlu->szStickyHeaders);
}
break;
diff --git a/src/mir_app/src/netlib.h b/src/mir_app/src/netlib.h index 06f03bac4b..3a7fe7a739 100644 --- a/src/mir_app/src/netlib.h +++ b/src/mir_app/src/netlib.h @@ -38,7 +38,6 @@ struct NetlibUser int handleType;
NETLIBUSER user;
NETLIBUSERSETTINGS settings;
- char *szStickyHeaders;
int toLog;
int inportnum;
int outportnum;
diff --git a/src/mir_app/src/netlib_httpproxy.cpp b/src/mir_app/src/netlib_httpproxy.cpp index 1a074d370e..0254989cb7 100644 --- a/src/mir_app/src/netlib_httpproxy.cpp +++ b/src/mir_app/src/netlib_httpproxy.cpp @@ -60,14 +60,3 @@ MIR_APP_DLL(int) Netlib_SetHttpProxyInfo(HNETLIBCONN nlc, const NETLIBHTTPPROXYI nlc->nlhpi.szHttpPostUrl = mir_strdup(nlc->nlhpi.szHttpPostUrl);
return 1;
}
-
-/////////////////////////////////////////////////////////////////////////////////////////
-
-MIR_APP_DLL(int) Netlib_SetStickyHeaders(HNETLIBUSER nlu, const char *szHeaders)
-{
- if (GetNetlibHandleType(nlu) != NLH_USER)
- return ERROR_INVALID_PARAMETER;
-
- replaceStr(nlu->szStickyHeaders, szHeaders); // pointer is ours
- return 0;
-}
|
