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)
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue