summaryrefslogtreecommitdiff
path: root/src/context.c
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2012-07-21 16:10:17 +0300
committerRan Benita <ran234@gmail.com>2012-07-23 00:45:35 +0300
commit2c30fa7a6079e24fc9a7d05039bfae260cfc79a1 (patch)
treeed70d68556b839221e06010a0209c581e4b29557 /src/context.c
parent70e3e7e5c331084389fb9a20fa44ec828752d390 (diff)
downloadxorg-lib-libxkbcommon-2c30fa7a6079e24fc9a7d05039bfae260cfc79a1.tar.gz
Remove old logging leftovers
Everything has been converted. Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'src/context.c')
-rw-r--r--src/context.c8
1 files changed, 2 insertions, 6 deletions
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);
}