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>
This commit is contained in:
Christophe Fergeau 2015-11-26 17:51:26 +01:00
parent df56d585cb
commit 0a6580d2e6

View File

@ -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); \