summaryrefslogtreecommitdiff
path: root/lua/telescope
diff options
context:
space:
mode:
authorSimon Hauser <Simon-Hauser@outlook.de>2022-07-12 13:24:23 +0200
committerGitHub <noreply@github.com>2022-07-12 13:24:23 +0200
commit5f253751916664caa15d9d6de8325e796db72686 (patch)
tree7ea85ae09500d465b67275beda40d4639936b3be /lua/telescope
parent7485b06d5854a8f3098dcbacc880f0a1107b3783 (diff)
chore: remove deprecated functions / messages (#2063)
Diffstat (limited to 'lua/telescope')
-rw-r--r--lua/telescope/builtin/diagnostics.lua17
-rw-r--r--lua/telescope/builtin/files.lua17
-rw-r--r--lua/telescope/builtin/git.lua17
-rw-r--r--lua/telescope/builtin/internal.lua17
-rw-r--r--lua/telescope/builtin/lsp.lua17
-rw-r--r--lua/telescope/utils.lua14
6 files changed, 0 insertions, 99 deletions
diff --git a/lua/telescope/builtin/diagnostics.lua b/lua/telescope/builtin/diagnostics.lua
deleted file mode 100644
index 5d8f926..0000000
--- a/lua/telescope/builtin/diagnostics.lua
+++ /dev/null
@@ -1,17 +0,0 @@
-local m = setmetatable({}, {
- __index = function(_, k)
- local utils = require "telescope.utils"
- utils.notify("builtin", {
- msg = string.format(
- 'You are using an internal interface. Do not use `require("telescope.builtin.diagnostics").%s`,'
- .. ' please use `require("telescope.builtin").diagnostics`! We will remove this endpoint soon!',
- k,
- k
- ),
- level = "ERROR",
- })
- return require("telescope.builtin").diagnostics
- end,
-})
-
-return m
diff --git a/lua/telescope/builtin/files.lua b/lua/telescope/builtin/files.lua
deleted file mode 100644
index 645fc10..0000000
--- a/lua/telescope/builtin/files.lua
+++ /dev/null
@@ -1,17 +0,0 @@
-local m = setmetatable({}, {
- __index = function(_, k)
- local utils = require "telescope.utils"
- utils.notify("builtin", {
- msg = string.format(
- 'You are using an internal interface. Do not use `require("telescope.builtin.files").%s`,'
- .. ' please use `require("telescope.builtin").%s`! We will remove this endpoint soon!',
- k,
- k
- ),
- level = "ERROR",
- })
- return require("telescope.builtin")[k]
- end,
-})
-
-return m
diff --git a/lua/telescope/builtin/git.lua b/lua/telescope/builtin/git.lua
deleted file mode 100644
index e6da478..0000000
--- a/lua/telescope/builtin/git.lua
+++ /dev/null
@@ -1,17 +0,0 @@
-local m = setmetatable({}, {
- __index = function(_, k)
- local utils = require "telescope.utils"
- utils.notify("builtin", {
- msg = string.format(
- 'You are using an internal interface. Do not use `require("telescope.builtin.git").%s`,'
- .. ' please use `require("telescope.builtin").git_%s`! We will remove this endpoint soon!',
- k,
- k
- ),
- level = "ERROR",
- })
- return require("telescope.builtin")["git_" .. k]
- end,
-})
-
-return m
diff --git a/lua/telescope/builtin/internal.lua b/lua/telescope/builtin/internal.lua
deleted file mode 100644
index b4d4197..0000000
--- a/lua/telescope/builtin/internal.lua
+++ /dev/null
@@ -1,17 +0,0 @@
-local m = setmetatable({}, {
- __index = function(_, k)
- local utils = require "telescope.utils"
- utils.notify("builtin", {
- msg = string.format(
- 'You are using an internal interface. Do not use `require("telescope.builtin.internal").%s`,'
- .. ' please use `require("telescope.builtin").%s`! We will remove this endpoint soon!',
- k,
- k
- ),
- level = "ERROR",
- })
- return require("telescope.builtin")[k]
- end,
-})
-
-return m
diff --git a/lua/telescope/builtin/lsp.lua b/lua/telescope/builtin/lsp.lua
deleted file mode 100644
index 8c297dc..0000000
--- a/lua/telescope/builtin/lsp.lua
+++ /dev/null
@@ -1,17 +0,0 @@
-local m = setmetatable({}, {
- __index = function(_, k)
- local utils = require "telescope.utils"
- utils.notify("builtin", {
- msg = string.format(
- 'You are using an internal interface. Do not use `require("telescope.builtin.lsp").%s`,'
- .. ' please use `require("telescope.builtin").lsp_%s`! We will remove this endpoint soon!',
- k,
- k
- ),
- level = "ERROR",
- })
- return require("telescope.builtin")["lsp_" .. k]
- end,
-})
-
-return m
diff --git a/lua/telescope/utils.lua b/lua/telescope/utils.lua
index 70ded91..73f702e 100644
--- a/lua/telescope/utils.lua
+++ b/lua/telescope/utils.lua
@@ -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