diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2009-05-10 14:33:13 +0200 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2009-05-10 14:33:13 +0200 |
| commit | d22dae58ba7e18ffdcac5f13ab9675eb1776c692 (patch) | |
| tree | 169e17b321523ec8b29aa602a0ebf90ec2fb8136 /src/xml-parser.c | |
| parent | 8a722d04938583dc3620de05fd52f0baecce9fbb (diff) | |
| download | cataract-d22dae58ba7e18ffdcac5f13ab9675eb1776c692.tar.xz | |
Remove #ifdef __DEBUG_ALL__
Diffstat (limited to 'src/xml-parser.c')
| -rw-r--r-- | src/xml-parser.c | 25 |
1 files changed, 6 insertions, 19 deletions
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); |
