From 4531d2c6485f1bda6243949adadbdec04fd2e22d Mon Sep 17 00:00:00 2001 From: daurnimator Date: Wed, 3 May 2017 17:22:45 +1000 Subject: Remove lua_pushtvalue Will probably be required again soon; but in a different form (e.g. should validate that TValue comes from same lua state) --- src/lapi.js | 6 ------ src/lua.js | 1 - 2 files changed, 7 deletions(-) diff --git a/src/lapi.js b/src/lapi.js index 862917d..6ef5a9e 100644 --- a/src/lapi.js +++ b/src/lapi.js @@ -124,11 +124,6 @@ const lua_pushvalue = function(L, idx) { assert(L.top <= L.ci.top, "stack overflow"); }; -const lua_pushtvalue = function(L, tvalue) { - L.stack[L.top++] = tvalue; - assert(L.top <= L.ci.top, "stack overflow"); -}; - const lua_settop = function(L, idx) { let func = L.ci.funcOff; if (idx >= 0) { @@ -1070,7 +1065,6 @@ module.exports.lua_pushnil = lua_pushnil; module.exports.lua_pushnumber = lua_pushnumber; module.exports.lua_pushstring = lua_pushstring; module.exports.lua_pushthread = lua_pushthread; -module.exports.lua_pushtvalue = lua_pushtvalue; module.exports.lua_pushvalue = lua_pushvalue; module.exports.lua_rawequal = lua_rawequal; module.exports.lua_rawget = lua_rawget; diff --git a/src/lua.js b/src/lua.js index 09fb0e6..3954316 100644 --- a/src/lua.js +++ b/src/lua.js @@ -149,7 +149,6 @@ module.exports.lua_pushnil = lapi.lua_pushnil; module.exports.lua_pushnumber = lapi.lua_pushnumber; module.exports.lua_pushstring = lapi.lua_pushstring; module.exports.lua_pushthread = lapi.lua_pushthread; -module.exports.lua_pushtvalue = lapi.lua_pushtvalue; module.exports.lua_pushvalue = lapi.lua_pushvalue; module.exports.lua_rawequal = lapi.lua_rawequal; module.exports.lua_rawget = lapi.lua_rawget; -- cgit v1.2.3-70-g09d2