chore: remove deprecated functions / messages (#2063)

This commit is contained in:
Simon Hauser
2022-07-12 13:24:23 +02:00
committed by GitHub
parent 7485b06d58
commit 5f25375191
6 changed files with 0 additions and 99 deletions

View File

@@ -19,20 +19,6 @@ utils.get_separator = function()
return Path.path.sep
end
utils.if_nil = function(x, was_nil, was_not_nil)
log.error "telescope.utils.if_nil is deprecated and will be removed. Please use vim.F.if_nil"
if x == nil then
return was_nil
else
return was_not_nil
end
end
utils.get_default = function(x, default)
log.error "telescope.utils.get_default is deprecated and will be removed. Please use vim.F.if_nil"
return utils.if_nil(x, default, x)
end
utils.cycle = function(i, n)
return i % n == 0 and n or i % n
end