From 6573aca0b26b50009f00ccf7673406ee1aa3943c Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Mon, 10 Sep 2012 21:05:04 +0100 Subject: [PATCH] kbproto unentanglement: XkbMaxShiftLevel ... by removing its only use. Signed-off-by: Daniel Stone --- src/xkbcomp/expr.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/xkbcomp/expr.c b/src/xkbcomp/expr.c index 72b94d7..4ed5cfa 100644 --- a/src/xkbcomp/expr.c +++ b/src/xkbcomp/expr.c @@ -418,9 +418,8 @@ ExprResolveLevel(struct xkb_context *ctx, const ExprDef *expr, if (!ok) return false; - if (result < 1 || result > XkbMaxShiftLevel) { - log_err(ctx, "Shift level %d is out of range (1..%d)\n", - result, XkbMaxShiftLevel); + if (result < 1) { + log_err(ctx, "Shift level %d is out of range\n", result); return false; }