From 6b853ad4312763d50f1e843d4e7168ccd023530a Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sat, 17 Sep 2016 14:28:17 +0200 Subject: Drop explicit references to "original" and "preview" image sizes All image sizes are now equal, no special treatment (except of thumbnails). --- src/items.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/items.c') diff --git a/src/items.c b/src/items.c index 27ab57e..d475f91 100644 --- a/src/items.c +++ b/src/items.c @@ -513,8 +513,6 @@ get_album_titles (const gchar *filename, gchar **title, gchar **description, gch *thumbnail = xml_file_get_node_attribute (xml, "/gallery/items/item[1]/thumbnail", "src"); if (! *thumbnail) *thumbnail = xml_file_get_node_attribute (xml, "/gallery/items/item[1]", "src"); - if (! *thumbnail) - *thumbnail = xml_file_get_node_attribute (xml, "/gallery/items/item[1]", "preview"); } xml_parser_free (xml); @@ -577,8 +575,6 @@ get_item_target_filename (TIndexItem *item) const gchar *s; s = item->path; - if (s == NULL && item->image_sizes) - s = g_hash_table_lookup (item->image_sizes, "preview"); if (s == NULL) return NULL; -- cgit v1.2.3