From 5131545f0a1c6cb55e1ad9603cd0c36b5813902f Mon Sep 17 00:00:00 2001 From: Steven Arcangeli Date: Sat, 29 Jul 2023 09:28:27 -0700 Subject: [PATCH] cleanup: remove old deprecation messages --- lua/dressing/config.lua | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/lua/dressing/config.lua b/lua/dressing/config.lua index d3f8614..b8f22c7 100644 --- a/lua/dressing/config.lua +++ b/lua/dressing/config.lua @@ -170,38 +170,6 @@ local M = vim.deepcopy(default_config) M.update = function(opts) local newconf = vim.tbl_deep_extend("force", default_config, opts or {}) - if - newconf.input.row - or newconf.input.col - or newconf.select.builtin.row - or newconf.select.builtin.col - then - vim.notify( - "Deprecated: Dressing row and col are no longer used. Use the override to customize layout (:help dressing)", - vim.log.levels.WARN - ) - end - - if - newconf.select.telescope - and newconf.select.telescope.theme - and vim.tbl_count(newconf.select.telescope) == 1 - then - vim.notify( - "Deprecated: dressing.select.telescope.theme is deprecated. Pass in telescope options directly (:help dressing)", - vim.log.levels.WARN - ) - local theme = newconf.select.telescope.theme - local ttype = type(theme) - if ttype == "string" then - newconf.select.telescope = require("telescope.themes")[string.format("get_%s", theme)]() - elseif ttype == "function" then - newconf.select.telescope = theme({}) - else - newconf.select.telescope = theme - end - end - for k, v in pairs(newconf) do M[k] = v end