From a61e1a4dbce39ced7a1da599d87dfcb876613109 Mon Sep 17 00:00:00 2001 From: Loïc Blot Date: Sun, 8 Jul 2018 23:06:33 +0200 Subject: Lua templating reading (part 4): s16, v2s16, v2f (#7512) --- src/script/common/c_converter.cpp | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/script/common/c_converter.cpp') 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); -- cgit v1.2.3