summaryrefslogtreecommitdiff
path: root/script/core/definition.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/definition.lua')
-rw-r--r--script/core/definition.lua11
1 files changed, 0 insertions, 11 deletions
diff --git a/script/core/definition.lua b/script/core/definition.lua
index 6c6b3df3..11223187 100644
--- a/script/core/definition.lua
+++ b/script/core/definition.lua
@@ -1,4 +1,3 @@
-local searcher = require 'core.searcher'
local workspace = require 'workspace'
local files = require 'files'
local vm = require 'vm'
@@ -132,21 +131,11 @@ return function (uri, offset)
end
local defs = vm.getAllDefs(source)
- local values = {}
- for _, src in ipairs(defs) do
- local value = searcher.getObjectValue(src)
- if value and value ~= src and guide.isLiteral(value) then
- values[value] = true
- end
- end
for _, src in ipairs(defs) do
if src.dummy then
goto CONTINUE
end
- if values[src] then
- goto CONTINUE
- end
local root = guide.getRoot(src)
if not root then
goto CONTINUE