summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dlua.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-10-21 12:25:48 +0200
committerRobert Vollmert <rvollmert@gmx.net>2009-10-21 12:25:48 +0200
commitdf9d0d88a17ed81f394e76d336657e5a180c0c36 (patch)
treea988abc4ae6fa4cbfd434e4dfc9e98c2f74e3b76 /crawl-ref/source/dlua.cc
parent5b65cad7433ded2e76bd162c21709133f7cfc439 (diff)
downloadcrawl-ref-df9d0d88a17ed81f394e76d336657e5a180c0c36.tar.gz
crawl-ref-df9d0d88a17ed81f394e76d336657e5a180c0c36.zip
Move more utility code from dlua to cluautil.
Diffstat (limited to 'crawl-ref/source/dlua.cc')
-rw-r--r--crawl-ref/source/dlua.cc22
1 files changed, 0 insertions, 22 deletions
diff --git a/crawl-ref/source/dlua.cc b/crawl-ref/source/dlua.cc
index 5aae875edc..cac5941566 100644
--- a/crawl-ref/source/dlua.cc
+++ b/crawl-ref/source/dlua.cc
@@ -13,28 +13,6 @@
#include "tags.h"
-template <typename list, typename lpush>
-static int dlua_gentable(lua_State *ls, const list &strings, lpush push)
-{
- lua_newtable(ls);
- for (int i = 0, size = strings.size(); i < size; ++i)
- {
- push(ls, strings[i]);
- lua_rawseti(ls, -2, i + 1);
- }
- return (1);
-}
-
-inline static void dlua_pushcxxstring(lua_State *ls, const std::string &s)
-{
- lua_pushstring(ls, s.c_str());
-}
-
-int dlua_stringtable(lua_State *ls, const std::vector<std::string> &s)
-{
- return dlua_gentable(ls, s, dlua_pushcxxstring);
-}
-
static int dlua_compiled_chunk_writer(lua_State *ls, const void *p,
size_t sz, void *ud)
{