summaryrefslogtreecommitdiff
path: root/server/src/method/textDocument/definition.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/method/textDocument/definition.lua')
-rw-r--r--server/src/method/textDocument/definition.lua5
1 files changed, 0 insertions, 5 deletions
diff --git a/server/src/method/textDocument/definition.lua b/server/src/method/textDocument/definition.lua
index 90c964f3..a0a25f46 100644
--- a/server/src/method/textDocument/definition.lua
+++ b/server/src/method/textDocument/definition.lua
@@ -2,7 +2,6 @@ local parser = require 'parser'
local matcher = require 'matcher'
return function (lsp, params)
- local start_clock = os.clock()
local uri = params.textDocument.uri
local results, lines = lsp:loadText(uri)
if not results then
@@ -37,10 +36,6 @@ return function (lsp, params)
end
local response = locations
- local passed_clock = os.clock() - start_clock
- if passed_clock >= 0.01 then
- log.warn(('[Goto Definition] takes [%.3f] sec, size [%s] bits.'):format(passed_clock, #lines.buf))
- end
return response
end