diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-11-25 18:17:36 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-11-25 18:17:36 +0000 |
commit | f155980e50b5670593eb0857a061d16f708a362f (patch) | |
tree | dbf0c648b8db4eae88d7ce70bf3f8e7a4edf9ff9 /plugins/MirLua/src/mlua.cpp | |
parent | b4132ae8daa7cb96ef49eca4827380c0e629a031 (diff) |
MirLua: removed needless stuff
git-svn-id: http://svn.miranda-ng.org/main/trunk@15778 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/mlua.cpp')
-rw-r--r-- | plugins/MirLua/src/mlua.cpp | 36 |
1 files changed, 6 insertions, 30 deletions
diff --git a/plugins/MirLua/src/mlua.cpp b/plugins/MirLua/src/mlua.cpp index c55cbe57f7..5a17246a5f 100644 --- a/plugins/MirLua/src/mlua.cpp +++ b/plugins/MirLua/src/mlua.cpp @@ -1,8 +1,8 @@ #include "stdafx.h"
-LIST<void> CMLua::Hooks(1, PtrKeySortT);
-LIST<void> CMLua::Events(1, PtrKeySortT);
-LIST<void> CMLua::Services(1, PtrKeySortT);
+//LIST<void> CMLua::Hooks(1, PtrKeySortT);
+//LIST<void> CMLua::Events(1, PtrKeySortT);
+//LIST<void> CMLua::Services(1, PtrKeySortT);
LIST<void> CMLua::HookRefs(1, HandleKeySortT);
LIST<void> CMLua::ServiceRefs(1, HandleKeySortT);
@@ -73,30 +73,16 @@ void CMLua::Unload() ::KillModuleHotkeys(hScriptsLangpack);
::KillObjectEventHooks(L);
::KillObjectServices(L);
- CMLua::KillModuleServices();
- CMLua::KillModuleEventHooks();
//KillModuleSubclassing
+ //CMLua::KillLuaRefs();
+
if (L)
lua_close(L);
}
-void CMLua::KillModuleEventHooks()
+void CMLua::KillLuaRefs()
{
- while (Hooks.getCount())
- {
- HANDLE hHook = Hooks[0];
- Hooks.remove(0);
- UnhookEvent(hHook);
- }
-
- while (Events.getCount())
- {
- HANDLE hEvent = Events[0];
- Events.remove(hEvent);
- DestroyHookableEvent(hEvent);
- }
-
while (HookRefs.getCount())
{
HandleRefParam *param = (HandleRefParam*)HookRefs[0];
@@ -107,16 +93,6 @@ void CMLua::KillModuleEventHooks() delete param;
}
}
-}
-
-void CMLua::KillModuleServices()
-{
- while (Services.getCount())
- {
- HANDLE hService = Services[0];
- Services.remove(0);
- DestroyServiceFunction(hService);
- }
while (ServiceRefs.getCount())
{
|