summaryrefslogtreecommitdiff
path: root/script/core/reference.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/reference.lua')
-rw-r--r--script/core/reference.lua11
1 files changed, 0 insertions, 11 deletions
diff --git a/script/core/reference.lua b/script/core/reference.lua
index 5e4a4cbf..60a25940 100644
--- a/script/core/reference.lua
+++ b/script/core/reference.lua
@@ -1,4 +1,3 @@
-local searcher = require 'core.searcher'
local guide = require 'parser.guide'
local files = require 'files'
local vm = require 'vm'
@@ -66,22 +65,12 @@ return function (uri, position)
local metaSource = vm.isMetaFile(uri)
local refs = vm.getAllRefs(source)
- local values = {}
- for _, src in ipairs(refs) do
- local value = searcher.getObjectValue(src)
- if value and value ~= src and guide.isLiteral(value) then
- values[value] = true
- end
- end
local results = {}
for _, src in ipairs(refs) 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