From 622e8f22fad1f323c6b7797a3e9f9ac34d50ae3e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 10 Mar 2018 21:18:01 +0300 Subject: unused code removed --- plugins/Import/src/stdafx.h | 22 +++++++++------------- plugins/Import/src/utils.cpp | 9 --------- 2 files changed, 9 insertions(+), 22 deletions(-) (limited to 'plugins') diff --git a/plugins/Import/src/stdafx.h b/plugins/Import/src/stdafx.h index 2e0db401d8..0d201a39cb 100644 --- a/plugins/Import/src/stdafx.h +++ b/plugins/Import/src/stdafx.h @@ -49,24 +49,21 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "dbrw\dbrw.h" #include "dbrw\dbintf.h" -// ** Global constants +// Global constants #define IMPORT_MODULE "MIMImport" // Module name #define IMPORT_SERVICE "MIMImport/Import" // Service for menu item // Keys -#define IMP_KEY_FR "FirstRun" // First run +#define IMP_KEY_FR "FirstRun" // First run +#define WIZM_GOTOPAGE (WM_USER+10) // wParam=resource id, lParam=dlgproc +#define WIZM_DISABLEBUTTON (WM_USER+11) // wParam=0:back, 1:next, 2:cancel +#define WIZM_SETCANCELTEXT (WM_USER+12) // lParam=(char*)newText +#define WIZM_ENABLEBUTTON (WM_USER+13) // wParam=0:back, 1:next, 2:cancel -#define WIZM_GOTOPAGE (WM_USER+10) //wParam=resource id, lParam=dlgproc -#define WIZM_DISABLEBUTTON (WM_USER+11) //wParam=0:back, 1:next, 2:cancel -#define WIZM_SETCANCELTEXT (WM_USER+12) //lParam=(char*)newText -#define WIZM_ENABLEBUTTON (WM_USER+13) //wParam=0:back, 1:next, 2:cancel - -#define PROGM_SETPROGRESS (WM_USER+10) //wParam=0..100 -#define PROGM_ADDMESSAGE (WM_USER+11) //lParam=(char*)szText - -#define ICQOSCPROTONAME "ICQ" +#define PROGM_SETPROGRESS (WM_USER+10) // wParam=0..100 +#define PROGM_ADDMESSAGE (WM_USER+11) // lParam=(char*)szText void AddMessage(const wchar_t* fmt, ...); @@ -79,7 +76,7 @@ INT_PTR CALLBACK FinishedPageProc(HWND hdlg, UINT message, WPARAM wParam, LPARAM bool IsDuplicateEvent(MCONTACT hContact, DBEVENTINFO dbei); -int CreateGroup(const wchar_t* name, MCONTACT hContact); +int CreateGroup(const wchar_t *name, MCONTACT hContact); extern HINSTANCE hInst; extern HWND hwndAccMerge; @@ -88,6 +85,5 @@ extern wchar_t importFile[]; extern time_t dwSinceDate; extern bool g_bServiceMode; -HICON GetIcon(int iIconId, bool size = false); HANDLE GetIconHandle(int iIconId); void RegisterIcons(void); diff --git a/plugins/Import/src/utils.cpp b/plugins/Import/src/utils.cpp index 8f83ed3f8b..ee85e71287 100644 --- a/plugins/Import/src/utils.cpp +++ b/plugins/Import/src/utils.cpp @@ -195,15 +195,6 @@ static IconItem iconList[] = { LPGEN("Import..."), "import_main", IDI_IMPORT } }; -HICON GetIcon(int iIconId, bool size) -{ - for (auto &it : iconList) - if (it.defIconID == iIconId) - return IcoLib_GetIconByHandle(it.hIcolib, size); - - return nullptr; -} - HANDLE GetIconHandle(int iIconId) { for (auto &it : iconList) -- cgit v1.2.3