From d22dae58ba7e18ffdcac5f13ab9675eb1776c692 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sun, 10 May 2009 14:33:13 +0200 Subject: Remove #ifdef __DEBUG_ALL__ --- src/xml-parser.c | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) (limited to 'src/xml-parser.c') diff --git a/src/xml-parser.c b/src/xml-parser.c index 8c4301b..ee40dad 100644 --- a/src/xml-parser.c +++ b/src/xml-parser.c @@ -136,17 +136,9 @@ xml_file_get_node_value (TXMLFile *file, const gchar *x_path) val = NULL; if ((xpathObj->nodesetval) && (xpathObj->nodesetval->nodeNr > 0)) { - #ifdef __DEBUG_ALL__ - printf("Result (%d nodes):\n", xpathObj->nodesetval->nodeNr); - #endif - for (i = 0; i < xpathObj->nodesetval->nodeNr; i++) { cur = xpathObj->nodesetval->nodeTab[i]; - #ifdef __DEBUG_ALL__ - printf(" XPATH matched: element node \"%s[%d]\", value = '%s'\n", cur->name, i, cur->content); - #endif - if (cur->content) { if (val == NULL) @@ -191,17 +183,12 @@ xml_file_get_node_attribute (TXMLFile *file, const gchar *x_path, const gchar *a attrv = NULL; if ((xpathObj->nodesetval) && (xpathObj->nodesetval->nodeNr > 0)) { - cur = xpathObj->nodesetval->nodeTab[0]; - attrvx = xmlGetProp (cur, (const xmlChar *) attr); - if (attrvx) { - attrv = g_strdup ((gchar*) attrvx); - xmlFree (attrvx); - } - - #ifdef __DEBUG_ALL__ - printf("Result (%d nodes):\n", xpathObj->nodesetval->nodeNr); - printf(" XPATH matched: element node \"%s\", value = '%s', property value = '%s'\n", cur->name, cur->content, attrv); - #endif + cur = xpathObj->nodesetval->nodeTab[0]; + attrvx = xmlGetProp (cur, (const xmlChar *) attr); + if (attrvx) { + attrv = g_strdup ((gchar*) attrvx); + xmlFree (attrvx); + } } xmlXPathFreeObject (xpathObj); -- cgit v1.2.3