summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/m_core.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-06-30 21:37:39 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-06-30 21:37:39 +0000
commit5c89906040b2ea1f307f3e337655a9429b858207 (patch)
treebda0c674c82f26b154de6a063d0124d6c8906619 /plugins/MirLua/src/m_core.cpp
parentce1c33a2c65a605929c5fcc7c075c76c3b27ea68 (diff)
MirLua: common code moved to m_core.h
git-svn-id: http://svn.miranda-ng.org/main/trunk@14465 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/m_core.cpp')
-rw-r--r--plugins/MirLua/src/m_core.cpp19
1 files changed, 2 insertions, 17 deletions
diff --git a/plugins/MirLua/src/m_core.cpp b/plugins/MirLua/src/m_core.cpp
index b022c013d6..41adff71fc 100644
--- a/plugins/MirLua/src/m_core.cpp
+++ b/plugins/MirLua/src/m_core.cpp
@@ -1,21 +1,6 @@
#include "stdafx.h"
-static LIST<void> Hooks(1, PtrKeySortT);
-static LIST<void> Events(1, PtrKeySortT);
-static LIST<void> Services(1, PtrKeySortT);
-
-struct HandleRefParam
-{
- HANDLE h;
- int ref;
- lua_State *L;
- HandleRefParam(HANDLE h) : L(NULL), h(h), ref(0) { }
- HandleRefParam(lua_State *L, HANDLE h, int ref = 0) : L(L), h(h), ref(ref) { }
-};
-static LIST<void> HookRefs(1, HandleKeySortT);
-static LIST<void> ServiceRefs(1, HandleKeySortT);
-
-void CMLua::KillModuleEventHooks()
+void KillModuleEventHooks()
{
while (Hooks.getCount())
{
@@ -43,7 +28,7 @@ void CMLua::KillModuleEventHooks()
}
}
-void CMLua::KillModuleServices()
+void KillModuleServices()
{
while (Services.getCount())
{