]> git.ozlabs.org Git - ccan/commitdiff
ttxml: removed cruft from tests
authorDaniel Burke <dan.p.burke@gmail.com>
Sun, 26 Feb 2012 17:03:05 +0000 (03:33 +1030)
committerDaniel Burke <dan.p.burke@gmail.com>
Sun, 26 Feb 2012 17:03:05 +0000 (03:33 +1030)
ccan/ttxml/test/run.c

index 539e6d09c749ec4026030aa47d143203ed212dc7..486b61c904ca342537e5328d96aca5e191e4bc61 100644 (file)
@@ -6,28 +6,6 @@
 #include <ccan/ttxml/ttxml.c>
 #include <ccan/tap/tap.h>
 
 #include <ccan/ttxml/ttxml.c>
 #include <ccan/tap/tap.h>
 
-/* 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; i<level; i++)printf("    ");
-       printf("%s:", name);
-       if(x->name)
-       for(i=0; i<x->nattrib; 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)
 {
 
 static int test_load(const char * filename)
 {