From a8fd968dd81edb45d13f527cebd405d5abbbfd80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 5 Dec 2018 17:59:36 +0800 Subject: =?UTF-8?q?=E6=8A=8A=E8=80=97=E6=97=B6=E7=BB=9F=E8=AE=A1=E6=8C=AA?= =?UTF-8?q?=E8=B5=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/method/textDocument/definition.lua | 5 ----- 1 file changed, 5 deletions(-) (limited to 'server/src/method/textDocument/definition.lua') 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 -- cgit v1.2.3