diff options
-rw-r--r-- | script/core/diagnostics/redundant-parameter.lua | 10 | ||||
-rw-r--r-- | script/proto/define.lua | 2 |
2 files changed, 2 insertions, 10 deletions
diff --git a/script/core/diagnostics/redundant-parameter.lua b/script/core/diagnostics/redundant-parameter.lua index a2e60b71..b25ec77a 100644 --- a/script/core/diagnostics/redundant-parameter.lua +++ b/script/core/diagnostics/redundant-parameter.lua @@ -3,7 +3,6 @@ local guide = require 'parser.guide' local vm = require 'vm' local lang = require 'language' local define = require 'proto.define' -local await = require 'await' local function countCallArgs(source) local result = 0 @@ -81,14 +80,7 @@ return function (uri, callback) end local func = source.node - local funcArgs = cache[func] - if funcArgs == nil then - funcArgs = getFuncArgs(func) or false - local refs = vm.getRefs(func) - for _, ref in ipairs(refs) do - cache[ref] = funcArgs - end - end + local funcArgs = getFuncArgs(func) if not funcArgs then return diff --git a/script/proto/define.lua b/script/proto/define.lua index b5e40c60..f2ee7ab5 100644 --- a/script/proto/define.lua +++ b/script/proto/define.lua @@ -124,7 +124,7 @@ m.DiagnosticDefaultNeededFileStatus = { ['close-non-object'] = 'Any', ['count-down-loop'] = 'Any', ['no-implicit-any'] = 'None', - ['deprecated'] = 'Any', + ['deprecated'] = 'Opened', ['duplicate-doc-class'] = 'Any', ['undefined-doc-class'] = 'Any', |