[gnome-photos/wip/flickr: 9/14] base-item: Remove unused code



commit 3ea03698946b6456c6e240794eeddd25332acd69
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Jul 1 17:38:47 2013 +0200

    base-item: Remove unused code

 src/photos-base-item.c   |   17 -----------------
 src/photos-flickr-item.c |    1 -
 src/photos-local-item.c  |    1 -
 3 files changed, 0 insertions(+), 19 deletions(-)
---
diff --git a/src/photos-base-item.c b/src/photos-base-item.c
index 50e7b12..de8d8d4 100644
--- a/src/photos-base-item.c
+++ b/src/photos-base-item.c
@@ -54,7 +54,6 @@ struct _PhotosBaseItemPrivate
   gboolean failed_thumbnailing;
   gboolean favorite;
   gboolean thumbnailed;
-  gboolean tried_thumbnailing;
   const gchar *thumb_path;
   gchar *author;
   gchar *default_app_name;
@@ -76,7 +75,6 @@ enum
   PROP_CURSOR,
   PROP_FAILED_THUMBNAILING,
   PROP_ID,
-  PROP_TRIED_THUMBNAILING
 };
 
 enum
@@ -521,9 +519,6 @@ photos_base_item_refresh_icon (PhotosBaseItem *self)
   if (priv->failed_thumbnailing)
     return;
 
-  if (!priv->tried_thumbnailing)
-    priv->tried_thumbnailing = TRUE;
-
   file = g_file_new_for_uri (priv->uri);
   g_file_query_info_async (file,
                            G_FILE_ATTRIBUTE_THUMBNAIL_PATH,
@@ -717,10 +712,6 @@ photos_base_item_set_property (GObject *object, guint prop_id, const GValue *val
       priv->failed_thumbnailing = g_value_get_boolean (value);
       break;
 
-    case PROP_TRIED_THUMBNAILING:
-      priv->tried_thumbnailing = g_value_get_boolean (value);
-      break;
-
     default:
       G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
       break;
@@ -777,14 +768,6 @@ photos_base_item_class_init (PhotosBaseItemClass *class)
                                                         "",
                                                         G_PARAM_READABLE));
 
-  g_object_class_install_property (object_class,
-                                   PROP_TRIED_THUMBNAILING,
-                                   g_param_spec_boolean ("tried-thumbnailing",
-                                                         "Thumbnailing attempted",
-                                                         "An attempt was made to create a thumbnail",
-                                                         FALSE,
-                                                         G_PARAM_CONSTRUCT_ONLY | G_PARAM_WRITABLE));
-
   signals[INFO_UPDATED] = g_signal_new ("info-updated",
                                         G_TYPE_FROM_CLASS (class),
                                         G_SIGNAL_RUN_LAST,
diff --git a/src/photos-flickr-item.c b/src/photos-flickr-item.c
index d4caaf3..f7ff18a 100644
--- a/src/photos-flickr-item.c
+++ b/src/photos-flickr-item.c
@@ -135,6 +135,5 @@ photos_flickr_item_new (TrackerSparqlCursor *cursor)
   return g_object_new (PHOTOS_TYPE_FLICKR_ITEM,
                        "cursor", cursor,
                        "failed-thumbnailing", FALSE,
-                       "tried-thumbnailing", FALSE,
                        NULL);
 }
diff --git a/src/photos-local-item.c b/src/photos-local-item.c
index 668fde8..61e3024 100644
--- a/src/photos-local-item.c
+++ b/src/photos-local-item.c
@@ -99,6 +99,5 @@ photos_local_item_new (TrackerSparqlCursor *cursor)
   return g_object_new (PHOTOS_TYPE_LOCAL_ITEM,
                        "cursor", cursor,
                        "failed-thumbnailing", FALSE,
-                       "tried-thumbnailing", FALSE,
                        NULL);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]