kbproto unentanglement: XkbMaxShiftLevel
... by removing its only use. Signed-off-by: Daniel Stone <daniel@fooishbar.org>master
parent
32bf405376
commit
6573aca0b2
|
@ -418,9 +418,8 @@ ExprResolveLevel(struct xkb_context *ctx, const ExprDef *expr,
|
||||||
if (!ok)
|
if (!ok)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (result < 1 || result > XkbMaxShiftLevel) {
|
if (result < 1) {
|
||||||
log_err(ctx, "Shift level %d is out of range (1..%d)\n",
|
log_err(ctx, "Shift level %d is out of range\n", result);
|
||||||
result, XkbMaxShiftLevel);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue