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/items.c | |
| parent | 8a722d04938583dc3620de05fd52f0baecce9fbb (diff) | |
| download | cataract-d22dae58ba7e18ffdcac5f13ab9675eb1776c692.tar.xz | |
Remove #ifdef __DEBUG_ALL__
Diffstat (limited to 'src/items.c')
| -rw-r--r-- | src/items.c | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/src/items.c b/src/items.c index 842f066..33311fd 100644 --- a/src/items.c +++ b/src/items.c @@ -57,9 +57,6 @@ parse_album_xml (const gchar *filename, TAlbum *index) /* Retrieve gallery type */ gallery_type = xml_file_get_node_attribute (xml, "/gallery", "type"); - #ifdef __DEBUG_ALL__ - printf("gallery_type = %s\n", gallery_type); - #endif if (strcmp (gallery_type, "index") == 0) index->type = GALLERY_TYPE_INDEX; else @@ -99,9 +96,6 @@ parse_album_xml (const gchar *filename, TAlbum *index) /* Section Items */ count = xml_file_node_get_children_count (xml, "/gallery/items/*"); - #ifdef __DEBUG_ALL__ - printf("parse_album_xml: items count = %d\n", count); - #endif index->items = g_ptr_array_new(); for (i = 0; i < count; i++) @@ -111,10 +105,8 @@ parse_album_xml (const gchar *filename, TAlbum *index) s = g_strdup_printf ("/gallery/items/*[%d]", i + 1); node_name = xml_file_get_node_name (xml, s); - if (! node_name) continue; - #ifdef __DEBUG_ALL__ - printf("parse_album_xml: item[%d] = '%s'\n", i + 1, node_name); - #endif + if (! node_name) + continue; if (strcmp (node_name, "item") == 0) { item->type = INDEX_ITEM_TYPE_PICTURE; @@ -215,16 +207,6 @@ parse_album_xml (const gchar *filename, TAlbum *index) } xml_parser_close (xml); - - /* Print the items */ - #ifdef __DEBUG_ALL__ - printf ("ID = '%s'\ntitle = '%s'\ndescription = '%s'\n", index->ID, index->title, index->desc); - for (i = 0; i < index->items->len; i++) { - TIndexItem *item = g_ptr_array_index (index->items, i); - printf ("item %d: path = '%s', title = '%s', title_description = '%s', thumbnail = '%s'\n", - i, item->path, item->title, item->title_description, item->thumbnail); - } - #endif return TRUE; } @@ -290,10 +272,6 @@ get_album_objects_count (const gchar *filename) count = xml_file_node_get_children_count (xml, "/gallery/items/item"); xml_parser_close (xml); - - #ifdef __DEBUG_ALL__ - printf ("get_objects_count(%s) = %d\n", filename, count); - #endif return count; } |
