kbproto unentanglement: XkbMaxShiftLevel

... by removing its only use.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
master
Daniel Stone 2012-09-10 21:05:04 +01:00
parent 32bf405376
commit 6573aca0b2
1 changed files with 2 additions and 3 deletions

View File

@ -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;
}