summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-11 10:20:05 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-01-03 11:02:11 -0800
commite4cba31313b44e40efcc0c260a33c3ec83e4b772 (patch)
treef88f0604ed180b6a0cccdcfd48da85fac30b9eac
parent3e486c4578f3f6a81fc0f9afba6551dfa8c7b63b (diff)
Stop building more unused functions
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--expr.c4
-rw-r--r--misc.c6
-rw-r--r--parseutils.c2
3 files changed, 12 insertions, 0 deletions
diff --git a/expr.c b/expr.c
index b22bb66..56e3988 100644
--- a/expr.c
+++ b/expr.c
@@ -208,6 +208,7 @@ RadioLookup(XPointer priv,
return True;
}
+#if 0
static int
TableLookup(XPointer priv,
Atom elem, Atom field, unsigned type, ExprResult * val_rtrn)
@@ -233,6 +234,7 @@ TableLookup(XPointer priv,
priv = (XPointer) tbl->entries;
return SimpleLookup(priv, (Atom) None, field, type, val_rtrn);
}
+#endif
static LookupEntry modIndexNames[] = {
{"shift", ShiftMapIndex},
@@ -285,6 +287,7 @@ LookupModMask(XPointer priv,
return True;
}
+#if 0
int
ExprResolveModIndex(ExprDef * expr,
ExprResult * val_rtrn,
@@ -361,6 +364,7 @@ ExprResolveModIndex(ExprDef * expr,
}
return ok;
}
+#endif
int
ExprResolveModMask(ExprDef * expr,
diff --git a/misc.c b/misc.c
index 24ad0ed..84df955 100644
--- a/misc.c
+++ b/misc.c
@@ -177,6 +177,7 @@ ReportBadType(const char *type, const char *field,
return False;
}
+#if 0
int
ReportBadIndexType(char *type, char *field, char *name, char *wanted)
{
@@ -184,6 +185,7 @@ ReportBadIndexType(char *type, char *field, char *name, char *wanted)
ACTION("Ignoring assignment to illegal field in %s\n", name);
return False;
}
+#endif
int
ReportBadField(const char *type, const char *field, const char *name)
@@ -193,6 +195,7 @@ ReportBadField(const char *type, const char *field, const char *name)
return False;
}
+#if 0
int
ReportMultipleDefs(char *type, char *field, char *name)
{
@@ -200,6 +203,7 @@ ReportMultipleDefs(char *type, char *field, char *name)
ACTION("Using last definition\n");
return False;
}
+#endif
/***====================================================================***/
@@ -228,6 +232,7 @@ UseNewField(unsigned field,
return useNew;
}
+#if 0
static Bool
MergeNewField(unsigned field,
CommonInfo * oldDefs, CommonInfo * newDefs, unsigned *pCollide)
@@ -244,6 +249,7 @@ MergeNewField(unsigned field,
}
return False;
}
+#endif
XPointer
ClearCommonInfo(CommonInfo * cmn)
diff --git a/parseutils.c b/parseutils.c
index 3ae7de0..fc0838b 100644
--- a/parseutils.c
+++ b/parseutils.c
@@ -519,6 +519,7 @@ KeyDeclCreate(char *name, ExprDef * expr)
return key;
}
+#if 0
KeyDef *
KeyDeclMerge(KeyDef * into, KeyDef * from)
{
@@ -528,6 +529,7 @@ KeyDeclMerge(KeyDef * into, KeyDef * from)
free(from);
return into;
}
+#endif
RowDef *
RowDeclCreate(KeyDef * keys)