summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src/modern_clistmod.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-06-07 20:35:29 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-06-07 20:35:29 +0000
commite31ac6c82a921e5d972fe3a3d437f18f147877a9 (patch)
tree771e43e5edba542df8d972653a9141cfa5bc091e /plugins/Clist_modern/src/modern_clistmod.cpp
parentc67ee19b7db5bd93c5dbc11865834ff8dd1db924 (diff)
duplicated and unused services removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@4899 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src/modern_clistmod.cpp')
-rw-r--r--plugins/Clist_modern/src/modern_clistmod.cpp34
1 files changed, 1 insertions, 33 deletions
diff --git a/plugins/Clist_modern/src/modern_clistmod.cpp b/plugins/Clist_modern/src/modern_clistmod.cpp
index f3da87eae2..6fd2978021 100644
--- a/plugins/Clist_modern/src/modern_clistmod.cpp
+++ b/plugins/Clist_modern/src/modern_clistmod.cpp
@@ -47,7 +47,6 @@ int ModernSkinOptInit(WPARAM wParam,LPARAM lParam);
int EventsProcessContactDoubleClick(HANDLE hContact);
INT_PTR TrayIconPauseAutoHide(WPARAM wParam,LPARAM lParam);
-INT_PTR ContactChangeGroup(WPARAM wParam,LPARAM lParam);
void InitTrayMenus(void);
void UninitTrayMenu();
@@ -157,31 +156,6 @@ int CListMod_ContactListShutdownProc(WPARAM wParam,LPARAM lParam)
return 0;
}
-INT_PTR GetCapsService(WPARAM wParam,LPARAM lParam)
-{
- if (lParam) {
- switch (lParam) {
- case 0:
- return 0;
- case CLUIF2_PLUGININFO:
- return (INT_PTR)&pluginInfo;
- case CLUIF2_CLISTTYPE:
- return 0x0107;
- case CLUIF2_EXTRACOLUMNCOUNT:
- return EXTRA_ICON_COUNT;
- }
- }
- else {
- switch (wParam) {
- case CLUICAPS_FLAGS1:
- return CLUIF_HIDEEMPTYGROUPS|CLUIF_DISABLEGROUPS|CLUIF_HASONTOPOPTION|CLUIF_HASAUTOHIDEOPTION;
- case CLUICAPS_FLAGS2:
- return MAKELONG(EXTRA_ICON_COUNT,1);
- }
- }
- return 0;
-}
-
HRESULT PreLoadContactListModule()
{
/* Global data initialization */
@@ -189,10 +163,6 @@ HRESULT PreLoadContactListModule()
g_CluiData.dwKeyColor = RGB(255, 0, 255);
g_CluiData.bCurrentAlpha = 255;
- //initialize firstly hooks
- //clist interface is empty yet so handles should check
- CreateServiceFunction(MS_CLUI_GETCAPS, GetCapsService);
-
// catch langpack events
HookEvent(ME_LANGPACK_CHANGED, OnLoadLangpack);
OnLoadLangpack(0, 0);
@@ -215,9 +185,7 @@ HRESULT CluiLoadModule()
CreateServiceFunction("ModernSkinSel/Apply", SvcApplySkin);
HookEvent(ME_DB_CONTACT_ADDED,ContactAdded);
- CreateServiceFunction(MS_CLIST_TRAYICONPROCESSMESSAGE,cli_TrayIconProcessMessage);
- CreateServiceFunction(MS_CLIST_PAUSEAUTOHIDE,TrayIconPauseAutoHide);
- CreateServiceFunction(MS_CLIST_CONTACTCHANGEGROUP,ContactChangeGroup);
+
CreateServiceFunction(MS_CLIST_TOGGLEHIDEOFFLINE,ToggleHideOffline);
CreateServiceFunction(MS_CLIST_TOGGLEGROUPS,ToggleGroups);