diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-06-30 21:31:03 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-06-30 21:31:03 +0000 |
commit | ce1c33a2c65a605929c5fcc7c075c76c3b27ea68 (patch) | |
tree | e756063cb1323cca57afb78270745abba6a1c6a3 /plugins/MirLua/src/m_clist.cpp | |
parent | fce279191e7b00a56ff5ca0e81dbb1a3fcee354f (diff) |
MirLua: removed duplicate code
git-svn-id: http://svn.miranda-ng.org/main/trunk@14464 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/m_clist.cpp')
-rw-r--r-- | plugins/MirLua/src/m_clist.cpp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/plugins/MirLua/src/m_clist.cpp b/plugins/MirLua/src/m_clist.cpp index bc22237776..9e52c700ed 100644 --- a/plugins/MirLua/src/m_clist.cpp +++ b/plugins/MirLua/src/m_clist.cpp @@ -1,43 +1,5 @@ #include "stdafx.h"
-static void MakeMenuItem(lua_State *L, CMenuItem &mi)
-{
- mi.hLangpack = hScriptsLangpack;
-
- lua_pushstring(L, "Flags");
- lua_gettable(L, -2);
- mi.flags = lua_tointeger(L, -1);
- lua_pop(L, 1);
-
- if (!(mi.flags & CMIF_UNICODE))
- mi.flags |= CMIF_UNICODE;
-
- lua_pushstring(L, "Name");
- lua_gettable(L, -2);
- mi.name.t = mir_utf8decodeT((char*)luaL_checkstring(L, -1));
- lua_pop(L, 1);
-
- lua_pushstring(L, "Position");
- lua_gettable(L, -2);
- mi.position = lua_tointeger(L, -1);
- lua_pop(L, 1);
-
- lua_pushstring(L, "Icon");
- lua_gettable(L, -2);
- mi.hIcolibItem = (HANDLE)lua_touserdata(L, -1);
- lua_pop(L, 1);
-
- lua_pushstring(L, "Service");
- lua_gettable(L, -2);
- mi.pszService = (char*)lua_tostring(L, -1);
- lua_pop(L, 1);
-
- lua_pushstring(L, "Parent");
- lua_gettable(L, -2);
- mi.root = (HGENMENU)lua_touserdata(L, -1);
- lua_pop(L, 1);
-}
-
static int lua_AddMainMenuItem(lua_State *L)
{
if (lua_type(L, 1) != LUA_TTABLE)
|