From: Daniel Burke Date: Sun, 26 Feb 2012 17:03:05 +0000 (+1030) Subject: ttxml: removed cruft from tests X-Git-Url: http://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=926996e88c32445c874ff9c4f47f159db6b45995;hp=470dc612b38c338ea6e56a9b0bdc5de3d9832048 ttxml: removed cruft from tests --- 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) {