diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-08-09 14:13:23 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-08-09 14:13:23 +0800 |
commit | 670dc93567d88e8d2ef288dc3c266d591c90beb5 (patch) | |
tree | c36a934905df5be0bf2b4a778dd583362cf7b68f /script/vm/vm.lua | |
parent | b85fbef97096a81ab206ec2def71ac22fb4c87c9 (diff) | |
download | lua-language-server-670dc93567d88e8d2ef288dc3c266d591c90beb5.zip |
cleanup
Diffstat (limited to 'script/vm/vm.lua')
-rw-r--r-- | script/vm/vm.lua | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/script/vm/vm.lua b/script/vm/vm.lua index 9254c799..f51def71 100644 --- a/script/vm/vm.lua +++ b/script/vm/vm.lua @@ -17,33 +17,6 @@ _ENV = nil ---@class vm local m = {} -function m.lock(tp, source) - local co = running() - local master = m.locked[co] - if not master then - master = {} - m.locked[co] = master - end - if not master[tp] then - master[tp] = {} - end - if master[tp][source] then - return nil - end - master[tp][source] = true - return function () - master[tp][source] = nil - end -end - -function m.isSet(src) - return guide.isSet(src) -end - -function m.isGet(src) - return guide.isGet(src) -end - function m.getArgInfo(source) local callargs = source.parent if not callargs or callargs.type ~= 'callargs' then @@ -96,16 +69,6 @@ function m.getKeyType(source) return guide.getKeyType(source) end -function m.mergeResults(a, b) - for _, r in ipairs(b) do - if not a[r] then - a[r] = true - a[#a+1] = r - end - end - return a -end - m.cacheTracker = setmetatable({}, weakMT) function m.flushCache() |