From ef9caa4af6a55e12a3a7d58fde7159965b7bf749 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Fri, 12 May 2017 15:35:12 +1000 Subject: Remove unused L.ciOff/L.nci fields --- src/ldo.js | 1 - src/lstate.js | 3 --- src/lvm.js | 1 - 3 files changed, 5 deletions(-) (limited to 'src') diff --git a/src/ldo.js b/src/ldo.js index f7a8d8f..7ee9582 100644 --- a/src/ldo.js +++ b/src/ldo.js @@ -114,7 +114,6 @@ const luaD_poscall = function(L, ci, firstResult, nres) { let res = ci.funcOff; L.ci = ci.previous; L.ci.next = null; - L.ciOff--; return moveresults(L, firstResult, res, nres, wanted); }; diff --git a/src/lstate.js b/src/lstate.js index 73fb310..3865ae5 100644 --- a/src/lstate.js +++ b/src/lstate.js @@ -47,7 +47,6 @@ class lua_State { this.base_ci = new CallInfo(); // Will be populated later this.top = 0; this.ci = null; - this.ciOff = null; this.stack = []; this.openupval = null; this.status = TS.LUA_OK; @@ -80,7 +79,6 @@ const luaE_extendCI = function(L) { ci.previous = L.ci; ci.next = null; L.ci = ci; - L.ciOff++; return ci; }; @@ -135,7 +133,6 @@ const preinit_thread = function(L, g) { L.l_G = g; L.stack = null; L.ci = null; - L.nci = 0; L.errorJmp = null; L.nCcalls = 0; L.hook = null; diff --git a/src/lvm.js b/src/lvm.js index fb32c91..816452c 100644 --- a/src/lvm.js +++ b/src/lvm.js @@ -495,7 +495,6 @@ const luaV_execute = function(L) { oci.callstatus |= lstate.CIST_TAIL; oci.next = null; ci = L.ci = oci; - L.ciOff--; assert(L.top === oci.l_base + L.stack[ofuncOff].value.p.maxstacksize); -- cgit v1.2.3-70-g09d2