diff options
author | dartraiden <wowemuh@gmail.com> | 2020-04-08 17:20:38 +0300 |
---|---|---|
committer | dartraiden <wowemuh@gmail.com> | 2020-04-08 17:20:38 +0300 |
commit | ef52fd44af405f847236089fb587f91028c5edc8 (patch) | |
tree | 51ff25d820c18f93562af03e115ccd2dbd9b7ec2 | |
parent | 23a3215d574ca6c1d421f9865b52b97ea9dad923 (diff) |
code cleaning
-rw-r--r-- | include/m_netlib.h | 11 | ||||
-rw-r--r-- | plugins/Clist_blind/src/init.cpp | 6 |
2 files changed, 0 insertions, 17 deletions
diff --git a/include/m_netlib.h b/include/m_netlib.h index c7f7313901..9a77973461 100644 --- a/include/m_netlib.h +++ b/include/m_netlib.h @@ -755,17 +755,6 @@ EXTERN_C MIR_APP_DLL(int) Netlib_LogfW(HNETLIBUSER hUser, _Printf_format_string_ EXTERN_C MIR_APP_DLL(void) Netlib_Dump(HNETLIBCONN nlc, const void *buf, size_t len, bool bIsSent, int flags);
-/////////////////////////////////////////////////////////////////////////////////////////
-// Security providers (0.6+)
-
-#define NNR_UNICODE 1
-
-#ifdef UNICODE
- #define NNR_TCHAR NNR_UNICODE
-#else
- #define NNR_TCHAR 0
-#endif
-
// Inits a required security provider. Right now only NTLM is supported
// Returns HANDLE = NULL on error or non-null value on success
// Known providers: Basic, NTLM, Negotiate, Kerberos, GSSAPI - (Kerberos SASL)
diff --git a/plugins/Clist_blind/src/init.cpp b/plugins/Clist_blind/src/init.cpp index 55808a265e..f5ceb6f379 100644 --- a/plugins/Clist_blind/src/init.cpp +++ b/plugins/Clist_blind/src/init.cpp @@ -441,9 +441,7 @@ wchar_t* GetStatusMessage(struct ClcContact *item) wchar_t proto_name[128];
wchar_t* GetProtoName(struct ClcContact *item)
{
- #ifdef UNICODE
char description[128];
- #endif
proto_name[0] = '\0';
if (item->hContact == NULL || item->pce->szProto == nullptr) {
@@ -453,12 +451,8 @@ wchar_t* GetProtoName(struct ClcContact *item) PROTOACCOUNT *acc = Proto_GetAccount(item->pce->szProto);
if (acc == nullptr) {
- #ifdef UNICODE
CallProtoService(item->pce->szProto, PS_GETNAME, sizeof(description), (LPARAM)description);
mir_snwprintf(proto_name, L"%S", description);
- #else
- CallProtoService(item->proto, PS_GETNAME, sizeof(proto_name), (LPARAM)proto_name);
- #endif
return proto_name;
}
|