[gnome-photos] item-manager: Remove redundant code



commit 683c5888f11d5ce1f120f56590a315959634f2a5
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu Oct 31 17:17:14 2013 +0100

    item-manager: Remove redundant code

 src/photos-main-toolbar.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/photos-main-toolbar.c b/src/photos-main-toolbar.c
index b96de47..ef1f39c 100644
--- a/src/photos-main-toolbar.c
+++ b/src/photos-main-toolbar.c
@@ -164,11 +164,9 @@ photos_main_toolbar_col_active_changed (PhotosBaseManager *manager, GObject *obj
 {
   PhotosMainToolbar *self = PHOTOS_MAIN_TOOLBAR (user_data);
   PhotosMainToolbarPrivate *priv = self->priv;
-  GObject *item;
   PhotosHeaderBarMode mode;
 
-  item = photos_base_manager_get_active_object (priv->col_mngr);
-  if (item != NULL)
+  if (object != NULL)
     {
       mode = PHOTOS_HEADER_BAR_MODE_STANDALONE;
       if (priv->coll_back_button == NULL)


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