chore: remove a lot of deprecated stuff (#1399)
This commit is contained in:
@@ -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(...)
|
||||
|
||||
Reference in New Issue
Block a user