chore: delete unused functions (#1788)
* chore: delete unused functions * chore: remove unused file No one needs this WIP file as well. We already have all these pickers implemented in a better way
This commit is contained in:
@@ -36,25 +36,6 @@ utils.get_lazy_default = function(x, defaulter, ...)
|
||||
end
|
||||
end
|
||||
|
||||
local function reversedipairsiter(t, i)
|
||||
i = i - 1
|
||||
if i ~= 0 then
|
||||
return i, t[i]
|
||||
end
|
||||
end
|
||||
|
||||
utils.reversed_ipairs = function(t)
|
||||
return reversedipairsiter, t, #t + 1
|
||||
end
|
||||
|
||||
utils.default_table_mt = {
|
||||
__index = function(t, k)
|
||||
local obj = {}
|
||||
rawset(t, k, obj)
|
||||
return obj
|
||||
end,
|
||||
}
|
||||
|
||||
utils.repeated_table = function(n, val)
|
||||
local empty_lines = {}
|
||||
for _ = 1, n do
|
||||
@@ -63,33 +44,6 @@ utils.repeated_table = function(n, val)
|
||||
return empty_lines
|
||||
end
|
||||
|
||||
utils.quickfix_items_to_entries = function(locations)
|
||||
local results = {}
|
||||
|
||||
for _, entry in ipairs(locations) do
|
||||
local vimgrep_str = entry.vimgrep_str
|
||||
or string.format(
|
||||
"%s:%s:%s: %s",
|
||||
vim.fn.fnamemodify(entry.display_filename or entry.filename, ":."),
|
||||
entry.lnum,
|
||||
entry.col,
|
||||
entry.text
|
||||
)
|
||||
|
||||
table.insert(results, {
|
||||
valid = true,
|
||||
value = entry,
|
||||
ordinal = vimgrep_str,
|
||||
display = vimgrep_str,
|
||||
|
||||
start = entry.start,
|
||||
finish = entry.finish,
|
||||
})
|
||||
end
|
||||
|
||||
return results
|
||||
end
|
||||
|
||||
utils.filter_symbols = function(results, opts)
|
||||
local has_ignore = opts.ignore_symbols ~= nil
|
||||
local has_symbols = opts.symbols ~= nil
|
||||
|
||||
Reference in New Issue
Block a user