Remove priv arguments from ExprResolveKeySym They've never been used by its one caller. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
diff --git a/src/xkbcomp/expr.c b/src/xkbcomp/expr.c
index df94824..bb8a826 100644
--- a/src/xkbcomp/expr.c
+++ b/src/xkbcomp/expr.c
@@ -962,8 +962,7 @@ ExprResolveMask(ExprDef * expr,
int
ExprResolveKeySym(ExprDef * expr,
- ExprResult * val_rtrn,
- IdentLookupFunc lookup, char * lookupPriv)
+ ExprResult * val_rtrn)
{
int ok = 0;
uint32_t sym;
@@ -978,7 +977,7 @@ ExprResolveKeySym(ExprDef * expr,
return True;
}
}
- ok = ExprResolveInteger(expr, val_rtrn, lookup, lookupPriv);
+ ok = ExprResolveInteger(expr, val_rtrn, NULL, NULL);
if ((ok) && (val_rtrn->uval < 10))
val_rtrn->uval += '0';
return ok;
diff --git a/src/xkbcomp/expr.h b/src/xkbcomp/expr.h
index fabb0ec..7c27c04 100644
--- a/src/xkbcomp/expr.h
+++ b/src/xkbcomp/expr.h
@@ -142,9 +142,7 @@ extern int ExprResolveMask(ExprDef * /* expr */ ,
);
extern int ExprResolveKeySym(ExprDef * /* expr */ ,
- ExprResult * /* val_rtrn */ ,
- IdentLookupFunc /* lookup */ ,
- char * /* lookupPriv */
+ ExprResult * /* val_rtrn */
);
#endif /* EXPR_H */
diff --git a/src/xkbcomp/symbols.c b/src/xkbcomp/symbols.c
index 5934c3e..d26032b 100644
--- a/src/xkbcomp/symbols.c
+++ b/src/xkbcomp/symbols.c
@@ -1641,7 +1641,7 @@ HandleModMapDef(ModMapDef * def,
tmp.haveSymbol = False;
tmp.u.keyName = KeyNameToLong(key->value.keyName);
}
- else if (ExprResolveKeySym(key, &rtrn, NULL, NULL))
+ else if (ExprResolveKeySym(key, &rtrn))
{
tmp.haveSymbol = True;
tmp.u.keySym = rtrn.uval;