diff options
author | George Hazan <george.hazan@gmail.com> | 2013-03-02 12:58:29 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-03-02 12:58:29 +0000 |
commit | 5a2d38a501a776344754a48a4602ceeb31f97660 (patch) | |
tree | 05e9b049111d767369fe0cd64221525b44cf6065 /plugins/VersionInfo/src/hooked_events.cpp | |
parent | b0e8129608e2ed313b69fa919edea231ab279848 (diff) |
unneeded code removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@3833 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/VersionInfo/src/hooked_events.cpp')
-rw-r--r-- | plugins/VersionInfo/src/hooked_events.cpp | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/plugins/VersionInfo/src/hooked_events.cpp b/plugins/VersionInfo/src/hooked_events.cpp index 71fb4e649c..717aa6dda9 100644 --- a/plugins/VersionInfo/src/hooked_events.cpp +++ b/plugins/VersionInfo/src/hooked_events.cpp @@ -21,9 +21,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "common.h"
#include "hooked_events.h"
-HANDLE hModulesLoaded;
-HANDLE hOptionsInitialize;
-
#define HOST "http://eblis.tla.ro/projects"
#define VERSIONINFO_VERSION_URL HOST "/miranda/VersionInfo/updater/VersionInfo.html"
@@ -32,18 +29,8 @@ HANDLE hOptionsInitialize; int HookEvents()
{
- hModulesLoaded = HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded);
- hOptionsInitialize = HookEvent(ME_OPT_INITIALISE, OnOptionsInitialise);
- //hPreShutdown = HookEvent(ME_SYSTEM_PRESHUTDOWN, OnPreShutdown);
-
- return 0;
-}
-
-int UnhookEvents()
-{
- UnhookEvent(hModulesLoaded);
- UnhookEvent(hOptionsInitialize);
-
+ HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded);
+ HookEvent(ME_OPT_INITIALISE, OnOptionsInitialise);
return 0;
}
|