aboutsummaryrefslogtreecommitdiff
path: root/src/script/common/c_converter.cpp
diff options
context:
space:
mode:
authorLoïc Blot <nerzhul@users.noreply.github.com>2018-07-08 23:06:33 +0200
committerGitHub <noreply@github.com>2018-07-08 23:06:33 +0200
commita61e1a4dbce39ced7a1da599d87dfcb876613109 (patch)
tree6cd5177133cf93773da851fbe233e2088b67661b /src/script/common/c_converter.cpp
parent94cd2bfeac073bf0ff0c384e4921c90f281747b0 (diff)
downloadminetest-a61e1a4dbce39ced7a1da599d87dfcb876613109.tar.xz
Lua templating reading (part 4): s16, v2s16, v2f (#7512)
Diffstat (limited to 'src/script/common/c_converter.cpp')
-rw-r--r--src/script/common/c_converter.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/script/common/c_converter.cpp b/src/script/common/c_converter.cpp
index 0ee5afa3e..dfd3f5cea 100644
--- a/src/script/common/c_converter.cpp
+++ b/src/script/common/c_converter.cpp
@@ -113,21 +113,6 @@ v2s16 read_v2s16(lua_State *L, int index)
return p;
}
-v2s16 check_v2s16(lua_State *L, int index)
-{
- v2s16 p;
- CHECK_POS_TAB(index);
- lua_getfield(L, index, "x");
- CHECK_POS_COORD("x");
- p.X = lua_tonumber(L, -1);
- lua_pop(L, 1);
- lua_getfield(L, index, "y");
- CHECK_POS_COORD("y");
- p.Y = lua_tonumber(L, -1);
- lua_pop(L, 1);
- return p;
-}
-
void push_v2s16(lua_State *L, v2s16 p)
{
lua_newtable(L);