diff options
| author | Simon Hauser <Simon-Hauser@outlook.de> | 2022-03-13 07:31:37 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-13 07:31:37 +0100 |
| commit | 75b57304323861631519e204d9fbca7bdbf1c4c5 (patch) | |
| tree | e936920fafb065d1d784a57822e9d8c6d0629db2 /lua/telescope/utils.lua | |
| parent | 1e4d5e59df389d26b772d525abe2b1a14b2b4099 (diff) | |
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
Diffstat (limited to 'lua/telescope/utils.lua')
| -rw-r--r-- | lua/telescope/utils.lua | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/lua/telescope/utils.lua b/lua/telescope/utils.lua index 9626121..c564c06 100644 --- a/lua/telescope/utils.lua +++ b/lua/telescope/utils.lua @@ -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 |
