From 9de0202a0b12838d505825413c3cbcce5edabc11 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 6 Mar 2013 22:12:20 +0000 Subject: cleanup of the unnecessary UnhookEvent() calls git-svn-id: http://svn.miranda-ng.org/main/trunk@3909 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/clist/clc.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/modules/clist/clc.cpp') 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(); -- cgit v1.2.3