diff options
author | George Hazan <ghazan@miranda.im> | 2017-09-18 18:33:09 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-09-18 18:33:09 +0300 |
commit | 3e9e96f6718b13c069138fb40f24f065ac03c6b7 (patch) | |
tree | d09301e8d63cf2bc70601fe683992440d4e2e086 /protocols/AimOscar/src | |
parent | b5de62080a2384e9f66d7bafbf971aa5b4b7c0c1 (diff) |
unneeded calls of DestroyServiceFunction() removed
Diffstat (limited to 'protocols/AimOscar/src')
-rw-r--r-- | protocols/AimOscar/src/aim.cpp | 2 | ||||
-rw-r--r-- | protocols/AimOscar/src/links.cpp | 9 | ||||
-rw-r--r-- | protocols/AimOscar/src/links.h | 1 |
3 files changed, 1 insertions, 11 deletions
diff --git a/protocols/AimOscar/src/aim.cpp b/protocols/AimOscar/src/aim.cpp index 56ee8e3943..c169e47aa4 100644 --- a/protocols/AimOscar/src/aim.cpp +++ b/protocols/AimOscar/src/aim.cpp @@ -116,7 +116,6 @@ extern "C" int __declspec(dllexport) Load(void) InitIcons();
InitExtraIcons();
-
return 0;
}
@@ -125,6 +124,5 @@ extern "C" int __declspec(dllexport) Load(void) extern "C" int __declspec(dllexport) Unload(void)
{
- aim_links_destroy();
return 0;
}
diff --git a/protocols/AimOscar/src/links.cpp b/protocols/AimOscar/src/links.cpp index f16fd3131b..13671e8518 100644 --- a/protocols/AimOscar/src/links.cpp +++ b/protocols/AimOscar/src/links.cpp @@ -18,8 +18,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #include "stdafx.h"
-static HANDLE hServiceParseLink;
-
extern OBJLIST<CAimProto> g_Instances;
static int SingleHexToDecimal(wchar_t c)
@@ -168,11 +166,6 @@ void aim_links_init(void) {
static const char szService[] = "AIM/ParseAimLink";
- hServiceParseLink = CreateServiceFunction(szService, ServiceParseAimLink);
+ CreateServiceFunction(szService, ServiceParseAimLink);
AssocMgr_AddNewUrlTypeT("aim:", TranslateT("AIM link protocol"), hInstance, IDI_AOL, szService, 0);
}
-
-void aim_links_destroy(void)
-{
- DestroyServiceFunction(hServiceParseLink);
-}
diff --git a/protocols/AimOscar/src/links.h b/protocols/AimOscar/src/links.h index 2aac49447b..5eb95a9eab 100644 --- a/protocols/AimOscar/src/links.h +++ b/protocols/AimOscar/src/links.h @@ -19,6 +19,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #define LINKS_H
void aim_links_init();
-void aim_links_destroy();
#endif
|