summaryrefslogtreecommitdiff
path: root/script-beta/vm/eachField.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-10-29 23:32:46 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-10-29 23:32:46 +0800
commit705e882703b837e44b1c6689d1fd90c7778f2c0f (patch)
tree85c30f28b7ad5b4d05ecad645fbb61da6528811a /script-beta/vm/eachField.lua
parente1ad0d2693911f3f7693e4b00d426322a29d02de (diff)
downloadlua-language-server-705e882703b837e44b1c6689d1fd90c7778f2c0f.zip
整理代码
Diffstat (limited to 'script-beta/vm/eachField.lua')
-rw-r--r--script-beta/vm/eachField.lua10
1 files changed, 0 insertions, 10 deletions
diff --git a/script-beta/vm/eachField.lua b/script-beta/vm/eachField.lua
index ac104267..12d1d908 100644
--- a/script-beta/vm/eachField.lua
+++ b/script-beta/vm/eachField.lua
@@ -64,13 +64,3 @@ function vm.getFields(source, deep)
return cache
end
end
-
-function vm.eachField(source, callback)
- local results = vm.getFields(source)
- if not results then
- return
- end
- for i = 1, #results do
- callback(results[i])
- end
-end