summaryrefslogtreecommitdiff
path: root/plugins/VersionInfo/src/services.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-03-02 12:58:29 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-03-02 12:58:29 +0000
commit5a2d38a501a776344754a48a4602ceeb31f97660 (patch)
tree05e9b049111d767369fe0cd64221525b44cf6065 /plugins/VersionInfo/src/services.cpp
parentb0e8129608e2ed313b69fa919edea231ab279848 (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/services.cpp')
-rw-r--r--plugins/VersionInfo/src/services.cpp18
1 files changed, 3 insertions, 15 deletions
diff --git a/plugins/VersionInfo/src/services.cpp b/plugins/VersionInfo/src/services.cpp
index 0efdb387f4..d78810637a 100644
--- a/plugins/VersionInfo/src/services.cpp
+++ b/plugins/VersionInfo/src/services.cpp
@@ -21,25 +21,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "common.h"
#include "services.h"
-HANDLE hsMenuCommand;
-HANDLE hsGetInfo;
-HANDLE hsServiceMode;
-
int bServiceMode = 0; //true only if plugin is running in service mode
int InitServices()
{
- hsMenuCommand = CreateServiceFunction(MS_VERSIONINFO_MENU_COMMAND, PluginMenuCommand);
- hsGetInfo = CreateServiceFunction(MS_VERSIONINFO_GETINFO, GetInfoService);
- hsServiceMode = CreateServiceFunction(MS_SERVICEMODE_LAUNCH, ServiceModeService);
- return 0;
-}
-
-int DestroyServices()
-{
- DestroyServiceFunction(hsMenuCommand);
- DestroyServiceFunction(hsGetInfo);
- DestroyServiceFunction(hsServiceMode);
+ CreateServiceFunction(MS_VERSIONINFO_MENU_COMMAND, PluginMenuCommand);
+ CreateServiceFunction(MS_VERSIONINFO_GETINFO, GetInfoService);
+ CreateServiceFunction(MS_SERVICEMODE_LAUNCH, ServiceModeService);
return 0;
}