Remove unused debugging function Signed-off-by: Ran Benita <ran234@gmail.com>
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
diff --git a/src/xkbcomp/parseutils.c b/src/xkbcomp/parseutils.c
index 26a9269..6af9c4c 100644
--- a/src/xkbcomp/parseutils.c
+++ b/src/xkbcomp/parseutils.c
@@ -633,24 +633,6 @@ BAIL:
return NULL;
}
-#ifdef DEBUG
-void
-PrintStmtAddrs(ParseCommon * stmt)
-{
- fprintf(stderr, "0x%x", stmt);
- if (stmt)
- {
- do
- {
- fprintf(stderr, "->0x%x", stmt->next);
- stmt = stmt->next;
- }
- while (stmt);
- }
- fprintf(stderr, "\n");
-}
-#endif
-
void
CheckDefaultMap(XkbFile * maps, const char *fileName)
{
diff --git a/src/xkbcomp/parseutils.h b/src/xkbcomp/parseutils.h
index 3631ae4..088af7c 100644
--- a/src/xkbcomp/parseutils.h
+++ b/src/xkbcomp/parseutils.h
@@ -113,11 +113,6 @@ IncludeCreate(char *str, unsigned merge);
extern unsigned
StmtSetMerge(ParseCommon *stmt, unsigned merge, YYLTYPE *loc, void *scanner);
-#ifdef DEBUG
-extern void
-PrintStmtAddrs(ParseCommon *stmt);
-#endif
-
extern void
CheckDefaultMap(XkbFile *maps, const char *fileName);