From 926996e88c32445c874ff9c4f47f159db6b45995 Mon Sep 17 00:00:00 2001 From: Daniel Burke Date: Mon, 27 Feb 2012 03:33:05 +1030 Subject: [PATCH 1/1] ttxml: removed cruft from tests --- ccan/ttxml/test/run.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/ccan/ttxml/test/run.c b/ccan/ttxml/test/run.c index 539e6d09..486b61c9 100644 --- a/ccan/ttxml/test/run.c +++ b/ccan/ttxml/test/run.c @@ -6,28 +6,6 @@ #include #include -/* print out the heirarchy of an XML file, useful for debugging */ - -static void xp(XmlNode *x, int level, int max) -{ - int i; - char text[] = "text"; - char *name = text; - if(level > max)return; - if(!x)return; - if(x->name)name = x->name; - for(i=0; iname) - for(i=0; inattrib; i++) - printf("%s=\"%s\",", x->attrib[i*2], x->attrib[i*2+1]); - else printf("%s", x->attrib[0]); - printf("\n"); - if(x->child)xp(x->child, level+1, max); - if(x->next)xp(x->next, level, max); -} - - static int test_load(const char * filename) { -- 2.39.2