summaryrefslogtreecommitdiff
path: root/server/src/service.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/service.lua')
-rw-r--r--server/src/service.lua10
1 files changed, 2 insertions, 8 deletions
diff --git a/server/src/service.lua b/server/src/service.lua
index 9cab6946..ee2965a9 100644
--- a/server/src/service.lua
+++ b/server/src/service.lua
@@ -115,13 +115,6 @@ function mt:clearDiagnostics(uri)
self._needDiagnostics[uri] = nil
end
-function mt:read(mode)
- if not self._input then
- return nil
- end
- return self._input(mode)
-end
-
function mt:needCompile(uri, compiled, mode)
self._needDiagnostics[uri] = true
if self._needCompile[uri] then
@@ -271,7 +264,8 @@ function mt:readText(uri, path, buf, compiled)
end
function mt:removeText(uri)
- if not self._file[uri] then
+ local obj = self._file[uri]
+ if not obj then
return
end
self._fileCount = self._fileCount - 1