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 /protocols/JabberG/src/jabber_menu.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 'protocols/JabberG/src/jabber_menu.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_menu.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/protocols/JabberG/src/jabber_menu.cpp b/protocols/JabberG/src/jabber_menu.cpp index 3f78cbb360..6341669e62 100644 --- a/protocols/JabberG/src/jabber_menu.cpp +++ b/protocols/JabberG/src/jabber_menu.cpp @@ -42,8 +42,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. static HANDLE hChooserMenu;
static int iChooserMenuPos = 30000;
-static HANDLE hPrebuildMenuHook;
-
static HGENMENU g_hMenuRequestAuth;
static HGENMENU g_hMenuGrantAuth;
static HGENMENU g_hMenuRevokeAuth;
@@ -195,7 +193,7 @@ static int JabberPrebuildContactMenu(WPARAM wParam, LPARAM lParam) void g_MenuInit(void)
{
- hPrebuildMenuHook = HookEvent(ME_CLIST_PREBUILDCONTACTMENU, JabberPrebuildContactMenu);
+ HookEvent(ME_CLIST_PREBUILDCONTACTMENU, JabberPrebuildContactMenu);
CreateServiceFunction("Jabber/MenuChoose", JabberMenuChooseService);
@@ -358,8 +356,6 @@ void g_MenuUninit(void) CallService(MS_CLIST_REMOVECONTACTMENUITEM, (WPARAM)g_hMenuLogin, 0);
CallService(MS_CLIST_REMOVECONTACTMENUITEM, (WPARAM)g_hMenuRefresh, 0);
CallService(MS_CLIST_REMOVECONTACTMENUITEM, (WPARAM)g_hMenuAddBookmark, 0);
-
- UnhookEvent(hPrebuildMenuHook);
}
/////////////////////////////////////////////////////////////////////////////////////////
|