@@ -156,44 +156,14 @@ function M.update_config_table(cfg_tbl, opts)
156156 return vim .deepcopy (cfg_tbl or default_config )
157157 end
158158
159+ --[[
160+ -- check deprecated options
159161 local function notify_warning(msg)
160162 vim.schedule(function()
161163 vim.notify("CompetiTest.nvim: " .. msg, vim.log.levels.WARN, { title = "CompetiTest" })
162164 end)
163165 end
164-
165- -- check deprecated testcases options
166- if opts .testcases_files_format then
167- opts .testcases_input_file_format = string.gsub (opts .testcases_files_format , " %$%(INOUT%)" , opts .input_name or " input" )
168- opts .testcases_output_file_format = string.gsub (opts .testcases_files_format , " %$%(INOUT%)" , opts .output_name or " output" )
169- opts .testcases_files_format = nil
170- notify_warning (
171- " option 'testcases_files_format' has been deprecated in favour of 'testcases_input_file_format' and 'testcases_output_file_format'."
172- )
173- end
174- if opts .input_name then
175- opts .input_name = nil
176- notify_warning (" option 'input_name' has been deprecated. See 'testcases_input_file_format'." )
177- end
178- if opts .output_name then
179- opts .output_name = nil
180- notify_warning (" option 'output_name' has been deprecated. See 'testcases_output_file_format'." )
181- end
182- -- check deprecated ui options
183- if opts .runner_ui then
184- for _ , option in ipairs ({ " total_width" , " total_height" }) do
185- if opts .runner_ui [option ] then
186- opts .popup_ui = opts .popup_ui or {}
187- opts .popup_ui [option ] = opts .runner_ui [option ]
188- opts .runner_ui [option ] = nil
189- notify_warning (" option 'runner_ui." .. option .. " ' has been deprecated in favour of 'popup_ui." .. option .. " '." )
190- end
191- end
192- if opts .runner_ui .selector_width then
193- opts .runner_ui .selector_width = nil
194- notify_warning (" option 'runner_ui.selector_width' has been deprecated. See 'popup_ui.layout'." )
195- end
196- end
166+ ]]
197167
198168 local new_config = vim .tbl_deep_extend (" force" , cfg_tbl or default_config , opts )
199169 -- commands arguments lists need to be replaced and not extended
0 commit comments