chore: remove a lot of deprecated stuff (#1399)

This commit is contained in:
Simon Hauser
2021-11-01 20:30:10 +01:00
committed by GitHub
parent 0caec3d6e4
commit 587a10d149
5 changed files with 4 additions and 137 deletions

View File

@@ -259,11 +259,6 @@ utils.diagnostics_to_tbl = function(opts)
return items
end
utils.path_shorten = function(filename, len)
log.warn "`utils.path_shorten` is deprecated. Use `require('plenary.path').shorten`."
return Path:new(filename):shorten(len)
end
utils.path_smart = (function()
local paths = {}
return function(filepath)
@@ -505,22 +500,6 @@ function utils.get_os_command_output(cmd, cwd)
return stdout, ret, stderr
end
utils.strdisplaywidth = function()
error "strdisplaywidth deprecated. please use plenary.strings.strdisplaywidth"
end
utils.utf_ptr2len = function()
error "utf_ptr2len deprecated. please use plenary.strings.utf_ptr2len"
end
utils.strcharpart = function()
error "strcharpart deprecated. please use plenary.strings.strcharpart"
end
utils.align_str = function()
error "align_str deprecated. please use plenary.strings.align_str"
end
local load_once = function(f)
local resolved = nil
return function(...)