diff options
Diffstat (limited to 'script/core/diagnostics/undefined-global.lua')
-rw-r--r-- | script/core/diagnostics/undefined-global.lua | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/script/core/diagnostics/undefined-global.lua b/script/core/diagnostics/undefined-global.lua index cce08319..161d8856 100644 --- a/script/core/diagnostics/undefined-global.lua +++ b/script/core/diagnostics/undefined-global.lua @@ -42,46 +42,5 @@ return function (uri, callback) } return end - if not vm.isDeprecated(src, 0) then - return - end - - local message = lang.script('DIAG_UNDEF_GLOBAL', key) - local defs = vm.getDefs(src, 0) - local validVersions - for _, def in ipairs(defs) do - if def.bindDocs then - for _, doc in ipairs(def.bindDocs) do - if doc.type == 'doc.version' then - validVersions = vm.getValidVersions(doc) - break - end - end - end - end - - local versions - if validVersions then - versions = {} - for version, valid in pairs(validVersions) do - if valid then - versions[#versions+1] = version - end - end - table.sort(versions) - if #versions > 0 then - message = ('%s(%s)'):format(message, lang.script('DIAG_DEFINED_VERSION', table.concat(versions, '/'), config.config.runtime.version)) - end - end - - callback { - start = src.start, - finish = src.finish, - tags = { define.DiagnosticTag.Deprecated }, - message = message, - data = { - versions = versions, - } - } end) end |