From c08b03076167837cff9eb66c19440d727e6dad31 Mon Sep 17 00:00:00 2001 From: dundargoc <33953936+dundargoc@users.noreply.github.com> Date: Sat, 15 Apr 2023 23:40:48 +0200 Subject: refactor: deprecate checkhealth functions The following functions are deprecated and will be removed in Nvim v0.11: - health#report_start() - health#report_info() - health#report_ok() - health#report_warn() - health#report_error() - vim.health.report_start() - vim.health.report_info() - vim.health.report_ok() - vim.health.report_warn() - vim.health.report_error() Users should instead use these: - vim.health.start() - vim.health.info() - vim.health.ok() - vim.health.warn() - vim.health.error() --- test/functional/fixtures/autoload/health/broken.vim | 3 --- test/functional/fixtures/autoload/health/full_render.vim | 8 -------- test/functional/fixtures/autoload/health/success1.vim | 6 ------ test/functional/fixtures/autoload/health/success2.vim | 4 ---- 4 files changed, 21 deletions(-) delete mode 100644 test/functional/fixtures/autoload/health/broken.vim delete mode 100644 test/functional/fixtures/autoload/health/full_render.vim delete mode 100644 test/functional/fixtures/autoload/health/success1.vim delete mode 100644 test/functional/fixtures/autoload/health/success2.vim (limited to 'test/functional/fixtures/autoload/health') diff --git a/test/functional/fixtures/autoload/health/broken.vim b/test/functional/fixtures/autoload/health/broken.vim deleted file mode 100644 index a2a595b96f..0000000000 --- a/test/functional/fixtures/autoload/health/broken.vim +++ /dev/null @@ -1,3 +0,0 @@ -function! health#broken#check() - throw 'caused an error' -endfunction diff --git a/test/functional/fixtures/autoload/health/full_render.vim b/test/functional/fixtures/autoload/health/full_render.vim deleted file mode 100644 index 2064b8606e..0000000000 --- a/test/functional/fixtures/autoload/health/full_render.vim +++ /dev/null @@ -1,8 +0,0 @@ -function! health#full_render#check() - call health#report_start("report 1") - call health#report_ok("life is fine") - call health#report_warn("no what installed", ["pip what", "make what"]) - call health#report_start("report 2") - call health#report_info("stuff is stable") - call health#report_error("why no hardcopy", [":h :hardcopy", ":h :TOhtml"]) -endfunction diff --git a/test/functional/fixtures/autoload/health/success1.vim b/test/functional/fixtures/autoload/health/success1.vim deleted file mode 100644 index a360347455..0000000000 --- a/test/functional/fixtures/autoload/health/success1.vim +++ /dev/null @@ -1,6 +0,0 @@ -function! health#success1#check() - call health#report_start("report 1") - call health#report_ok("everything is fine") - call health#report_start("report 2") - call health#report_ok("nothing to see here") -endfunction diff --git a/test/functional/fixtures/autoload/health/success2.vim b/test/functional/fixtures/autoload/health/success2.vim deleted file mode 100644 index b742b4879d..0000000000 --- a/test/functional/fixtures/autoload/health/success2.vim +++ /dev/null @@ -1,4 +0,0 @@ -function! health#success2#check() - call health#report_start("another 1") - call health#report_ok("ok") -endfunction -- cgit