summaryrefslogtreecommitdiff
path: root/script/async/loadfile.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-20 21:55:41 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-20 21:55:41 +0800
commitc63b2e404d8d2bb984afe3678a5ba2b2836380cc (patch)
treea70661effacc7a29caa8d49583673ac4be2faaf5 /script/async/loadfile.lua
parent85c5a4210e4447422cd5677369ae740ed65725a0 (diff)
downloadlua-language-server-c63b2e404d8d2bb984afe3678a5ba2b2836380cc.zip
remove the old version
Diffstat (limited to 'script/async/loadfile.lua')
-rw-r--r--script/async/loadfile.lua13
1 files changed, 0 insertions, 13 deletions
diff --git a/script/async/loadfile.lua b/script/async/loadfile.lua
deleted file mode 100644
index b9d0f41c..00000000
--- a/script/async/loadfile.lua
+++ /dev/null
@@ -1,13 +0,0 @@
-require 'utility'
-local fs = require 'bee.filesystem'
-
-while true do
- local filename, mode = IN:bpop()
- local buf = io.load(fs.path(filename))
- if buf then
- OUT:push(filename, mode, buf)
- else
- ERR:push('Load failed:' .. filename)
- end
- GC:push(ID, collectgarbage 'count')
-end