diff options
author | Lars Mueller <appgurulars@gmx.de> | 2020-12-24 14:48:05 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2020-12-24 22:07:04 +0100 |
commit | 8f72d4b2940f0bd5486e38bd58127d14a1762be8 (patch) | |
tree | 65fa352af8f0225430a599423df5ed9dbaa5cb1e /src | |
parent | 74762470b2aa11a5271b846549ff14b86c1705d2 (diff) | |
download | minetest-8f72d4b2940f0bd5486e38bd58127d14a1762be8.tar.gz minetest-8f72d4b2940f0bd5486e38bd58127d14a1762be8.tar.bz2 minetest-8f72d4b2940f0bd5486e38bd58127d14a1762be8.zip |
Fix minetest.is_nan
Diffstat (limited to 'src')
-rw-r--r-- | src/script/lua_api/l_util.cpp | 11 | ||||
-rw-r--r-- | src/script/lua_api/l_util.h | 3 |
2 files changed, 0 insertions, 14 deletions
diff --git a/src/script/lua_api/l_util.cpp b/src/script/lua_api/l_util.cpp index cd63e20c2..6490eb578 100644 --- a/src/script/lua_api/l_util.cpp +++ b/src/script/lua_api/l_util.cpp @@ -239,15 +239,6 @@ int ModApiUtil::l_is_yes(lua_State *L) return 1; } -// is_nan(arg) -int ModApiUtil::l_is_nan(lua_State *L) -{ - NO_MAP_LOCK_REQUIRED; - - lua_pushboolean(L, isNaN(L, 1)); - return 1; -} - // get_builtin_path() int ModApiUtil::l_get_builtin_path(lua_State *L) { @@ -493,7 +484,6 @@ void ModApiUtil::Initialize(lua_State *L, int top) API_FCT(get_password_hash); API_FCT(is_yes); - API_FCT(is_nan); API_FCT(get_builtin_path); @@ -526,7 +516,6 @@ void ModApiUtil::InitializeClient(lua_State *L, int top) API_FCT(write_json); API_FCT(is_yes); - API_FCT(is_nan); API_FCT(compress); API_FCT(decompress); diff --git a/src/script/lua_api/l_util.h b/src/script/lua_api/l_util.h index 9ff91bb53..b6c1b58af 100644 --- a/src/script/lua_api/l_util.h +++ b/src/script/lua_api/l_util.h @@ -65,9 +65,6 @@ private: // is_yes(arg) static int l_is_yes(lua_State *L); - // is_nan(arg) - static int l_is_nan(lua_State *L); - // get_builtin_path() static int l_get_builtin_path(lua_State *L); |