From a5e65f02c7e37bed18fbca915e8040358d0f4fe7 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Wed, 7 Oct 2015 18:59:19 +0000 Subject: Non-IM Contact: - Minor code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@15516 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Non-IM Contact/src/services.cpp | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) (limited to 'plugins/Non-IM Contact/src/services.cpp') diff --git a/plugins/Non-IM Contact/src/services.cpp b/plugins/Non-IM Contact/src/services.cpp index e6fcfb3da3..46282ef90a 100644 --- a/plugins/Non-IM Contact/src/services.cpp +++ b/plugins/Non-IM Contact/src/services.cpp @@ -1,23 +1,9 @@ #include "stdafx.h" -//======================================================= -// db_get_static -//======================================================= - -int db_get_static(MCONTACT hContact, const char *szModule, const char *szSetting, char *value, size_t length) -{ - ptrA str(db_get_sa(hContact, szModule, szSetting)); - if (str == NULL) - return 0; - - strncpy_s(value, length, str, _TRUNCATE); - return 1; -} - //======================================================= // GetCaps //======================================================= - +// INT_PTR GetLCCaps(WPARAM wParam, LPARAM) { if (wParam == PFLAGNUM_1) @@ -32,6 +18,7 @@ INT_PTR GetLCCaps(WPARAM wParam, LPARAM) //======================================================= // GetName //======================================================= +// INT_PTR GetLCName(WPARAM wParam, LPARAM lParam) { mir_strncpy((char*)lParam, MODNAME, wParam); @@ -41,6 +28,7 @@ INT_PTR GetLCName(WPARAM wParam, LPARAM lParam) //======================================================= // BPLoadIcon //======================================================= +// INT_PTR LoadLCIcon(WPARAM wParam, LPARAM) { if (LOWORD(wParam) == PLI_PROTOCOL) { @@ -62,7 +50,7 @@ INT_PTR LoadLCIcon(WPARAM wParam, LPARAM) //======================================================= // SetFStatus //======================================================= - +// int SetLCStatus(WPARAM wParam, LPARAM) { int oldStatus = LCStatus; @@ -113,7 +101,7 @@ int SetLCStatus(WPARAM wParam, LPARAM) //======================================================= // GetStatus //======================================================= - +// INT_PTR GetLCStatus(WPARAM, LPARAM) { if ((LCStatus >= ID_STATUS_ONLINE) && (LCStatus <= ID_STATUS_OUTTOLUNCH)) -- cgit v1.2.3