[gnome-photos/wip/rishi/manager-model: 8/8] view-container: Remove unused methods



commit bc9038f8caf9c26ee858634eee58346bc84f5110
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Dec 6 12:25:05 2016 +0100

    view-container: Remove unused methods

 src/photos-view-container.c |   21 +--------------------
 src/photos-view-container.h |    4 ----
 2 files changed, 1 insertions(+), 24 deletions(-)
---
diff --git a/src/photos-view-container.c b/src/photos-view-container.c
index 22687bb..40785dd 100644
--- a/src/photos-view-container.c
+++ b/src/photos-view-container.c
@@ -51,7 +51,6 @@ struct _PhotosViewContainer
   GtkStack parent_instance;
   GdMainView *view;
   GtkListStore *model;
-  GtkTreePath *current_path;
   GtkWidget *error_box;
   GtkWidget *no_results;
   PhotosBaseManager *item_mngr;
@@ -109,13 +108,10 @@ photos_view_container_disconnect_view (PhotosViewContainer *self)
 
 
 static void
-photos_view_container_item_activated (PhotosViewContainer *self, const gchar * id, const GtkTreePath *path)
+photos_view_container_item_activated (PhotosViewContainer *self, const gchar * id)
 {
   GObject *object;
 
-  g_clear_pointer (&self->current_path, (GDestroyNotify) gtk_tree_path_free);
-
-  self->current_path = gtk_tree_path_copy (path);
   object = photos_base_manager_get_object_by_id (self->item_mngr, id);
 
   if (!photos_base_item_is_collection (PHOTOS_BASE_ITEM (object)) &&
@@ -407,7 +403,6 @@ photos_view_container_finalize (GObject *object)
 {
   PhotosViewContainer *self = PHOTOS_VIEW_CONTAINER (object);
 
-  g_clear_pointer (&self->current_path, (GDestroyNotify) gtk_tree_path_free);
   g_free (self->name);
 
   G_OBJECT_CLASS (photos_view_container_parent_class)->finalize (object);
@@ -520,20 +515,6 @@ photos_view_container_activate_result (PhotosViewContainer *self)
 }
 
 
-GtkTreePath *
-photos_view_container_get_current_path (PhotosViewContainer *self)
-{
-  return self->current_path;
-}
-
-
-GtkListStore *
-photos_view_container_get_model (PhotosViewContainer *self)
-{
-  return self->model;
-}
-
-
 const gchar *
 photos_view_container_get_name (PhotosViewContainer *self)
 {
diff --git a/src/photos-view-container.h b/src/photos-view-container.h
index 8b0b3f5..d351a4f 100644
--- a/src/photos-view-container.h
+++ b/src/photos-view-container.h
@@ -38,10 +38,6 @@ GtkWidget             *photos_view_container_new                    (PhotosWindo
 
 void                   photos_view_container_activate_result        (PhotosViewContainer *self);
 
-GtkTreePath           *photos_view_container_get_current_path       (PhotosViewContainer *self);
-
-GtkListStore          *photos_view_container_get_model              (PhotosViewContainer *self);
-
 const gchar           *photos_view_container_get_name               (PhotosViewContainer *self);
 
 G_END_DECLS


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