From e4cba31313b44e40efcc0c260a33c3ec83e4b772 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 11 Dec 2022 10:20:05 -0800 Subject: Stop building more unused functions Signed-off-by: Alan Coopersmith --- expr.c | 4 ++++ misc.c | 6 ++++++ parseutils.c | 2 ++ 3 files changed, 12 insertions(+) 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) -- cgit v1.2.3