From 2c30fa7a6079e24fc9a7d05039bfae260cfc79a1 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Sat, 21 Jul 2012 16:10:17 +0300 Subject: Remove old logging leftovers Everything has been converted. Signed-off-by: Ran Benita --- src/context.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/context.c') diff --git a/src/context.c b/src/context.c index 18a8222..814223b 100644 --- a/src/context.c +++ b/src/context.c @@ -202,7 +202,7 @@ priority_to_prefix(int priority) case LOG_EMERG: return "Internal error:"; default: - return ""; + return NULL; } } @@ -316,11 +316,7 @@ xkb_log(struct xkb_context *ctx, int priority, const char *fmt, ...) va_list args; va_start(args, fmt); - /* NOTE: This test will be removed in a few commits. */ - if (ctx) - ctx->log_fn(ctx, priority, fmt, args); - else - default_log_fn(ctx, priority, fmt, args); + ctx->log_fn(ctx, priority, fmt, args); va_end(args); } -- cgit v1.2.1