diff options
author | George Hazan <ghazan@miranda.im> | 2018-03-10 21:18:01 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-03-10 21:18:01 +0300 |
commit | 622e8f22fad1f323c6b7797a3e9f9ac34d50ae3e (patch) | |
tree | 34f50aa5248a0292be31fb4d9e7a252c4f96b03f | |
parent | bbf7a2bcf24ca620d44a397e1c289d25bcb03ec2 (diff) |
unused code removed
-rw-r--r-- | plugins/Import/src/stdafx.h | 22 | ||||
-rw-r--r-- | plugins/Import/src/utils.cpp | 9 |
2 files changed, 9 insertions, 22 deletions
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)
|