From ef52fd44af405f847236089fb587f91028c5edc8 Mon Sep 17 00:00:00 2001 From: dartraiden Date: Wed, 8 Apr 2020 17:20:38 +0300 Subject: code cleaning --- include/m_netlib.h | 11 ----------- plugins/Clist_blind/src/init.cpp | 6 ------ 2 files changed, 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; } -- cgit v1.2.3