[gnome-photos] view-model: Remove unused variable
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] view-model: Remove unused variable
- Date: Thu, 12 Jan 2017 15:13:18 +0000 (UTC)
commit 7373a5af9ce94e6efe61eec589dcebda3ef908ba
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Jan 12 15:26:20 2017 +0100
view-model: Remove unused variable
Fallout from 5497a7c67c13509da605bd51de1098101c7a40b7
src/photos-view-model.c | 17 -----------------
1 files changed, 0 insertions(+), 17 deletions(-)
---
diff --git a/src/photos-view-model.c b/src/photos-view-model.c
index c90f8f3..c9b025a 100644
--- a/src/photos-view-model.c
+++ b/src/photos-view-model.c
@@ -32,8 +32,6 @@
#include "photos-enums.h"
#include "photos-filterable.h"
#include "photos-search-context.h"
-#include "photos-tracker-controller.h"
-#include "photos-utils.h"
#include "photos-view-model.h"
@@ -43,7 +41,6 @@ struct _PhotosViewModel
GHashTable *info_updated_ids;
PhotosBaseManager *item_mngr;
PhotosModeController *mode_cntrlr;
- PhotosTrackerController *trk_cntrlr;
PhotosWindowMode mode;
gchar *row_ref_key;
};
@@ -228,8 +225,6 @@ photos_view_model_constructed (GObject *object)
G_OBJECT_CLASS (photos_view_model_parent_class)->constructed (object);
- photos_utils_get_controller (self->mode, NULL, &self->trk_cntrlr);
-
item_mngr_chld = photos_item_manager_get_for_mode (PHOTOS_ITEM_MANAGER (self->item_mngr), self->mode);
g_signal_connect_object (item_mngr_chld,
"object-added",
@@ -246,17 +241,6 @@ photos_view_model_constructed (GObject *object)
static void
-photos_view_model_dispose (GObject *object)
-{
- PhotosViewModel *self = PHOTOS_VIEW_MODEL (object);
-
- g_clear_object (&self->trk_cntrlr);
-
- G_OBJECT_CLASS (photos_view_model_parent_class)->dispose (object);
-}
-
-
-static void
photos_view_model_finalize (GObject *object)
{
PhotosViewModel *self = PHOTOS_VIEW_MODEL (object);
@@ -329,7 +313,6 @@ photos_view_model_class_init (PhotosViewModelClass *class)
GObjectClass *object_class = G_OBJECT_CLASS (class);
object_class->constructed = photos_view_model_constructed;
- object_class->dispose = photos_view_model_dispose;
object_class->finalize = photos_view_model_finalize;
object_class->set_property = photos_view_model_set_property;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]