Remove priv arguments from ExprResolveModMask
authorDaniel Stone <daniel@fooishbar.org>
Mon, 20 Feb 2012 13:34:36 +0000 (13:34 +0000)
committerDaniel Stone <daniel@fooishbar.org>
Mon, 20 Feb 2012 13:34:36 +0000 (13:34 +0000)
What with them now being unused and all.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
src/xkbcomp/compat.c
src/xkbcomp/expr.c
src/xkbcomp/expr.h
src/xkbcomp/vmod.c

index 26117a1..155d267 100644 (file)
@@ -337,7 +337,7 @@ ResolveStateAndPredicate(ExprDef * expr,
         }
     }
 
-    if (ExprResolveModMask(expr, &result, NULL, NULL))
+    if (ExprResolveModMask(expr, &result))
     {
         *mods_rtrn = result.uval;
         return True;
index 2416bd2..db1406c 100644 (file)
@@ -266,14 +266,13 @@ LookupModMask(char * priv,
 
 int
 ExprResolveModMask(ExprDef * expr,
-                   ExprResult * val_rtrn,
-                   IdentLookupFunc lookup, char * lookupPriv)
+                   ExprResult * val_rtrn)
 {
     LookupPriv priv;
 
     priv.priv = NULL;
-    priv.chain = lookup;
-    priv.chainPriv = lookupPriv;
+    priv.chain = NULL;
+    priv.chainPriv = NULL;
     return ExprResolveMask(expr, val_rtrn, LookupModMask, (char *) & priv);
 }
 
index 538770c..230b85b 100644 (file)
@@ -94,9 +94,7 @@ extern int LookupModIndex(char * /* priv */ ,
     );
 
 extern int ExprResolveModMask(ExprDef * /* expr */ ,
-                              ExprResult * /* val_rtrn */ ,
-                              IdentLookupFunc /* lookup */ ,
-                              char *  /* priv */
+                              ExprResult * /* val_rtrn */
     );
 
 extern int ExprResolveVModMask(ExprDef * /* expr */ ,
index 82004e6..d7f92a5 100644 (file)
@@ -102,7 +102,7 @@ HandleVModDef(VModDef * stmt, struct xkb_desc *xkb, unsigned mergeMode,
                 {
                     const char *str1;
                     const char *str2 = "";
-                    if (!ExprResolveModMask(stmt->value, &mod, NULL, NULL))
+                    if (!ExprResolveModMask(stmt->value, &mod))
                     {
                         str1 = XkbcAtomText(stmt->name);
                         ACTION("Declaration of %s ignored\n", str1);
@@ -141,7 +141,7 @@ HandleVModDef(VModDef * stmt, struct xkb_desc *xkb, unsigned mergeMode,
     names->vmods[nextFree] = stmt->name;
     if (stmt->value == NULL)
         return True;
-    if (ExprResolveModMask(stmt->value, &mod, NULL, NULL))
+    if (ExprResolveModMask(stmt->value, &mod))
     {
         srv->vmods[nextFree] = mod.uval;
         return True;