summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2012-09-10 21:05:04 +0100
committerDaniel Stone <daniel@fooishbar.org>2012-09-10 21:05:17 +0100
commit6573aca0b26b50009f00ccf7673406ee1aa3943c (patch)
treecee488c227900ad2cc9b0086f209cd68eeb9da93 /src
parent32bf4053766250d280191ec57e79c863bfb1dca7 (diff)
downloadlibxkbcommon-6573aca0b26b50009f00ccf7673406ee1aa3943c.tar.gz
libxkbcommon-6573aca0b26b50009f00ccf7673406ee1aa3943c.tar.bz2
libxkbcommon-6573aca0b26b50009f00ccf7673406ee1aa3943c.zip
kbproto unentanglement: XkbMaxShiftLevel
... by removing its only use. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'src')
-rw-r--r--src/xkbcomp/expr.c5
1 files 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;
}