summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2015-11-26 17:51:26 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2016-01-26 15:58:43 +0100
commit0a6580d2e636749f8aa9dfc7bffcc1f2aa9114fd (patch)
tree6d188a93744316550ceff6e79abbb6b79c64ae3b
parentdf56d585cbc928698be6da7476acbc1dffcfcd5b (diff)
downloadspice-common-0a6580d2e636749f8aa9dfc7bffcc1f2aa9114fd.tar.gz
spice-common-0a6580d2e636749f8aa9dfc7bffcc1f2aa9114fd.tar.xz
spice-common-0a6580d2e636749f8aa9dfc7bffcc1f2aa9114fd.zip
log: Kill spice_warn_if
It's redundant with spice_warn_if_fail(), and can even be confusing. Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
-rw-r--r--common/log.h6
1 files changed, 0 insertions, 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); \