aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-22 17:29:38 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-22 18:46:29 +1000
commit6646bebd474b95a2d4cbb8558c0d1cb5b5353de0 (patch)
tree315a8942601c5d518ad0f06b6c8c02f35099b043 /src
parent6bd8fb685dd9a2c153ab040b1844cbcfecc699f0 (diff)
downloadfengari-6646bebd474b95a2d4cbb8558c0d1cb5b5353de0.tar.gz
fengari-6646bebd474b95a2d4cbb8558c0d1cb5b5353de0.tar.bz2
fengari-6646bebd474b95a2d4cbb8558c0d1cb5b5353de0.zip
src/lstate.js: Remove useless luaE_freeCI
We don't keep around a pool of callinfo objects
Diffstat (limited to 'src')
-rw-r--r--src/lstate.js7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/lstate.js b/src/lstate.js
index d1789e8..5481f95 100644
--- a/src/lstate.js
+++ b/src/lstate.js
@@ -85,11 +85,6 @@ const luaE_extendCI = function(L) {
return ci;
};
-const luaE_freeCI = function(L) {
- let ci = L.ci;
- ci.next = null;
-};
-
const stack_init = function(L1, L) {
L1.stack = new Array(BASIC_STACK_SIZE); // TODO: for now we don't care about the stack size
L1.top = 0;
@@ -105,7 +100,6 @@ const stack_init = function(L1, L) {
const freestack = function(L) {
L.ci = L.base_ci;
- luaE_freeCI(L);
L.stack = null;
};
@@ -207,5 +201,4 @@ module.exports.lua_close = lua_close;
module.exports.lua_newstate = lua_newstate;
module.exports.lua_newthread = lua_newthread;
module.exports.luaE_extendCI = luaE_extendCI;
-module.exports.luaE_freeCI = luaE_freeCI;
module.exports.luaE_freethread = luaE_freethread;