From 0a6580d2e636749f8aa9dfc7bffcc1f2aa9114fd Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Thu, 26 Nov 2015 17:51:26 +0100 Subject: log: Kill spice_warn_if It's redundant with spice_warn_if_fail(), and can even be confusing. Acked-by: Jonathon Jongsma --- common/log.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/common/log.h b/common/log.h index a56105a..0e03f59 100644 --- a/common/log.h +++ b/common/log.h @@ -95,12 +95,6 @@ void spice_log(const char *log_domain, } \ } G_STMT_END -#define spice_warn_if(x) G_STMT_START { \ - if G_UNLIKELY(x) { \ - spice_warning("condition `%s' reached", #x); \ - } \ -} G_STMT_END - #define spice_assert(x) G_STMT_START { \ if G_LIKELY(x) { } else { \ spice_error("assertion `%s' failed", #x); \ -- cgit