From 6d43e3e4b7fd1373056a406573e80a976413952f Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Sat, 30 Sep 2023 12:54:59 +0100 Subject: [PATCH] a/vk: Remove unused vk_check_error define --- src/xrt/auxiliary/vk/vk_helpers.h | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/xrt/auxiliary/vk/vk_helpers.h b/src/xrt/auxiliary/vk/vk_helpers.h index 84d67145a..054039fa2 100644 --- a/src/xrt/auxiliary/vk/vk_helpers.h +++ b/src/xrt/auxiliary/vk/vk_helpers.h @@ -609,27 +609,6 @@ xrt_swapchain_usage_flag_string(enum xrt_swapchain_usage_bits bits, bool null_on XRT_CHECK_RESULT bool vk_has_error(VkResult res, const char *fun, const char *file, int line); -/*! - * @def vk_check_error - * @brief Perform checking of a Vulkan result, returning in case it is not VK_SUCCESS. - * - * @param fun A string literal with the name of the Vulkan function, for logging purposes. - * @param res a VkResult from that function. - * @param ret value to return, if any, upon error - * - * @see vk_has_error which is wrapped by this macro - * - * @ingroup aux_vk - */ -#define vk_check_error(fun, res, ret) \ - do { \ - VkResult _ret = res; \ - if (_ret != VK_SUCCESS) { \ - vk_print_result(vk, _ret, fun, __FILE__, __LINE__); \ - return _ret; \ - } \ - } while (0) - /* *