summaryrefslogtreecommitdiff
path: root/lua/telescope/path.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/telescope/path.lua')
-rw-r--r--lua/telescope/path.lua16
1 files changed, 0 insertions, 16 deletions
diff --git a/lua/telescope/path.lua b/lua/telescope/path.lua
index 0a47a83..1630ae7 100644
--- a/lua/telescope/path.lua
+++ b/lua/telescope/path.lua
@@ -56,22 +56,6 @@ path.normalize = function(filepath, cwd)
return filepath
end
-path.read_last_line = function(filepath)
- local fd = vim.loop.fs_open(filepath, "r", 438)
- if fd == nil then return '' end
- local stat = assert(vim.loop.fs_fstat(fd))
- local data = ''
- local index = stat.size - 2
- while true do
- local char = assert(vim.loop.fs_read(fd, 1, index))
- if char == '\n' then break end
- data = char .. data
- index = index - 1
- end
- assert(vim.loop.fs_close(fd))
- return data
-end
-
path.read_file = function(filepath)
local fd = vim.loop.fs_open(filepath, "r", 438)
if fd == nil then return '' end