summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/modplus.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-03-06 22:12:20 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-03-06 22:12:20 +0000
commit9de0202a0b12838d505825413c3cbcce5edabc11 (patch)
tree6f1f707f3e17c19e5cd08745e76c5299f9ba827b /plugins/TabSRMM/src/modplus.cpp
parent4e3088029101cc1e9bbc46984910a47bc0530e8f (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 'plugins/TabSRMM/src/modplus.cpp')
-rw-r--r--plugins/TabSRMM/src/modplus.cpp19
1 files changed, 2 insertions, 17 deletions
diff --git a/plugins/TabSRMM/src/modplus.cpp b/plugins/TabSRMM/src/modplus.cpp
index ea4f8389fe..5eb4748c79 100644
--- a/plugins/TabSRMM/src/modplus.cpp
+++ b/plugins/TabSRMM/src/modplus.cpp
@@ -47,8 +47,6 @@
#include "commonheaders.h"
-static HANDLE hEventCBButtonPressed,hEventCBInit, hEventDbOptionsInit, hEventDbPluginsLoaded;
-
int g_bStartup=0;
BOOL g_bIMGtagButton;
@@ -106,19 +104,6 @@ int ChangeClientIconInStatusBar(const TWindowData *dat)
return (S_OK);
}
-
-int ModPlus_PreShutdown(WPARAM wparam, LPARAM lparam)
-{
- if ( hEventCBButtonPressed )
- UnhookEvent(hEventCBButtonPressed);
- if ( hEventCBInit )
- UnhookEvent(hEventCBInit);
- UnhookEvent(hEventDbPluginsLoaded);
- UnhookEvent(hEventDbOptionsInit);
-
- return (0);
-}
-
static int RegisterCustomButton(WPARAM wParam,LPARAM lParam)
{
if ( ServiceExists(MS_BB_ADDBUTTON)) {
@@ -258,8 +243,8 @@ int ModPlus_Init(WPARAM wparam,LPARAM lparam)
{
g_bStartup = 1;
- hEventCBButtonPressed=HookEvent(ME_MSG_BUTTONPRESSED,CustomButtonPressed);
- hEventCBInit=HookEvent(ME_MSG_TOOLBARLOADED,RegisterCustomButton);
+ HookEvent(ME_MSG_BUTTONPRESSED, CustomButtonPressed);
+ HookEvent(ME_MSG_TOOLBARLOADED, RegisterCustomButton);
if (PluginConfig.g_bClientInStatusBar&&ServiceExists(MS_MSG_ADDICON)) {
StatusIconData sid = {0};