diff options
author | George Hazan <george.hazan@gmail.com> | 2013-03-06 22:12:20 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-03-06 22:12:20 +0000 |
commit | 9de0202a0b12838d505825413c3cbcce5edabc11 (patch) | |
tree | 6f1f707f3e17c19e5cd08745e76c5299f9ba827b /src/modules/clist/clc.cpp | |
parent | 4e3088029101cc1e9bbc46984910a47bc0530e8f (diff) |
cleanup of the unnecessary UnhookEvent() calls
git-svn-id: http://svn.miranda-ng.org/main/trunk@3909 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/clist/clc.cpp')
-rw-r--r-- | src/modules/clist/clc.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/modules/clist/clc.cpp b/src/modules/clist/clc.cpp index f914547fda..b81523c3af 100644 --- a/src/modules/clist/clc.cpp +++ b/src/modules/clist/clc.cpp @@ -36,8 +36,6 @@ static BOOL bModuleInitialized = FALSE; static HANDLE hClcWindowList;
static HANDLE hShowInfoTipEvent;
HANDLE hHideInfoTipEvent;
-static HANDLE hAckHook;
-static HANDLE hClcSettingsChanged;
int g_IconWidth, g_IconHeight;
@@ -223,12 +221,12 @@ int LoadCLCModule(void) HookEvent(ME_SYSTEM_MODULESLOADED, ClcModulesLoaded);
HookEvent(ME_PROTO_ACCLISTCHANGED, ClcAccountsChanged);
- hClcSettingsChanged = HookEvent(ME_DB_CONTACT_SETTINGCHANGED, ClcSettingChanged);
+ HookEvent(ME_DB_CONTACT_SETTINGCHANGED, ClcSettingChanged);
HookEvent(ME_DB_CONTACT_ADDED, ClcContactAdded);
HookEvent(ME_DB_CONTACT_DELETED, ClcContactDeleted);
HookEvent(ME_CLIST_CONTACTICONCHANGED, ClcContactIconChanged);
HookEvent(ME_SKIN_ICONSCHANGED, ClcIconsChanged);
- hAckHook = (HANDLE) HookEvent(ME_PROTO_ACK, ClcProtoAck);
+ HookEvent(ME_PROTO_ACK, ClcProtoAck);
InitCustomMenus();
return 0;
@@ -238,9 +236,6 @@ void UnloadClcModule() {
if ( !bModuleInitialized) return;
- UnhookEvent(hAckHook);
- UnhookEvent(hClcSettingsChanged);
-
mir_free(cli.clcProto);
FreeDisplayNameCache();
|