summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dlua.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/dlua.cc')
-rw-r--r--crawl-ref/source/dlua.cc51
1 files changed, 0 insertions, 51 deletions
diff --git a/crawl-ref/source/dlua.cc b/crawl-ref/source/dlua.cc
index 9af08e3829..718438b9e9 100644
--- a/crawl-ref/source/dlua.cc
+++ b/crawl-ref/source/dlua.cc
@@ -321,57 +321,6 @@ std::string dlua_chunk::get_chunk_prefix(const std::string &sorig) const
return rewrite_chunk_prefix(sorig, true);
}
-static int dgnevent_type(lua_State *ls)
-{
- DEVENT(ls, 1, dev);
- PLUARET(number, dev->type);
-}
-
-static int dgnevent_place(lua_State *ls)
-{
- DEVENT(ls, 1, dev);
- lua_pushnumber(ls, dev->place.x);
- lua_pushnumber(ls, dev->place.y);
- return (2);
-}
-
-static int dgnevent_dest(lua_State *ls)
-{
- DEVENT(ls, 1, dev);
- lua_pushnumber(ls, dev->dest.x);
- lua_pushnumber(ls, dev->dest.y);
- return (2);
-}
-
-static int dgnevent_ticks(lua_State *ls)
-{
- DEVENT(ls, 1, dev);
- PLUARET(number, dev->elapsed_ticks);
-}
-
-static int dgnevent_arg1(lua_State *ls)
-{
- DEVENT(ls, 1, dev);
- PLUARET(number, dev->arg1);
-}
-
-static int dgnevent_arg2(lua_State *ls)
-{
- DEVENT(ls, 1, dev);
- PLUARET(number, dev->arg2);
-}
-
-static const struct luaL_reg dgnevent_lib[] =
-{
- { "type", dgnevent_type },
- { "pos", dgnevent_place },
- { "dest", dgnevent_dest },
- { "ticks", dgnevent_ticks },
- { "arg1", dgnevent_arg1 },
- { "arg2", dgnevent_arg2 },
- { NULL, NULL }
-};
-
void luaopen_setmeta(lua_State *ls,
const char *global,
const luaL_reg *lua_lib,