diff options
Diffstat (limited to 'server/src/vm/local.lua')
-rw-r--r-- | server/src/vm/local.lua | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/server/src/vm/local.lua b/server/src/vm/local.lua index 106606ea..9b981c1d 100644 --- a/server/src/vm/local.lua +++ b/server/src/vm/local.lua @@ -7,8 +7,6 @@ local mt = {} mt.__index = mt mt.type = 'local' mt._close = math.maxinteger -mt._infoCount = 0 -mt._infoLimit = 10 function mt:setValue(value) if self.value then @@ -41,21 +39,6 @@ function mt:addInfo(tp, source) } self._info[id] = info - self._infoCount = self._infoCount + 1 - - if self._infoCount > self._infoLimit then - for srcId in pairs(self._info) do - local src = sourceMgr.list[srcId] - if not src then - self._info[srcId] = nil - self._infoCount = self._infoCount - 1 - end - end - self._infoLimit = self._infoCount * 2 - if self._infoLimit < 10 then - self._infoLimit = 10 - end - end end function mt:eachInfo(callback) @@ -66,7 +49,6 @@ function mt:eachInfo(callback) list[#list+1] = info else self._info[srcId] = nil - self._infoCount = self._infoCount - 1 end end table.sort(list, function (a, b) |