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 --- protocols/Gadu-Gadu/src/gg.cpp | 6 +----- protocols/Gadu-Gadu/src/gg.h | 2 -- 2 files changed, 1 insertion(+), 7 deletions(-) (limited to 'protocols/Gadu-Gadu') diff --git a/protocols/Gadu-Gadu/src/gg.cpp b/protocols/Gadu-Gadu/src/gg.cpp index 8a08ca5d74..57dcf2a2da 100644 --- a/protocols/Gadu-Gadu/src/gg.cpp +++ b/protocols/Gadu-Gadu/src/gg.cpp @@ -277,7 +277,7 @@ void GGPROTO::block_init() mi.pszContactOwner = m_szModuleName; hBlockMenuItem = Menu_AddContactMenuItem(&mi); - hPrebuildMenuHook = HookEvent(ME_CLIST_PREBUILDCONTACTMENU, gg_prebuildcontactmenu); + HookEvent(ME_CLIST_PREBUILDCONTACTMENU, gg_prebuildcontactmenu); } ////////////////////////////////////////////////////////// @@ -285,7 +285,6 @@ void GGPROTO::block_init() void GGPROTO::block_uninit() { - UnhookEvent(hPrebuildMenuHook); CallService(MS_CLIST_REMOVECONTACTMENUITEM, (WPARAM)hBlockMenuItem, 0); } @@ -385,9 +384,6 @@ extern "C" int __declspec(dllexport) Load(void) extern "C" int __declspec(dllexport) Unload() { - LocalEventUnhook(hHookModulesLoaded); - LocalEventUnhook(hHookPreShutdown); - // Cleanup WinSock WSACleanup(); return 0; diff --git a/protocols/Gadu-Gadu/src/gg.h b/protocols/Gadu-Gadu/src/gg.h index a33ad71c14..2ae43a64d2 100644 --- a/protocols/Gadu-Gadu/src/gg.h +++ b/protocols/Gadu-Gadu/src/gg.h @@ -289,8 +289,6 @@ typedef struct #define GG_POPUP_WARNING 8 #define GG_POPUP_MULTILOGON 16 -#define LocalEventUnhook(hook) if (hook) UnhookEvent(hook) - // Some MSVC compatibility with gcc #ifdef _MSC_VER #ifndef strcasecmp -- cgit v1.2.3