[gnome-photos/wip/rishi/edit-mode: 12/24] base-item: Remove photos_base_item_get_bbox
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/edit-mode: 12/24] base-item: Remove photos_base_item_get_bbox
- Date: Wed, 17 Jun 2015 05:25:58 +0000 (UTC)
commit 089c808ad3a5cec0f337c6ac95e586b594093745
Author: Debarshi Ray <debarshir gnome org>
Date: Tue May 26 19:07:21 2015 +0200
base-item: Remove photos_base_item_get_bbox
We never used it. Removing it will make our life easier when
refactoring things to avoid running the pipeline in a thread.
This reverts cd695e2bdf936cbc8c74694119fc876273f538a5
src/photos-base-item.c | 10 ----------
src/photos-base-item.h | 2 --
2 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/src/photos-base-item.c b/src/photos-base-item.c
index 63e68a5..b050576 100644
--- a/src/photos-base-item.c
+++ b/src/photos-base-item.c
@@ -59,7 +59,6 @@ struct _PhotosBaseItemPrivate
GdkPixbuf *original_icon;
GeglNode *graph;
GeglNode *load;
- GeglRectangle bbox;
GMutex mutex_download;
GMutex mutex;
GQuark equipment;
@@ -743,7 +742,6 @@ photos_base_item_load (PhotosBaseItem *self, GCancellable *cancellable, GError *
gegl_node_set (priv->load, "path", path, NULL);
output = photos_pipeline_get_output (priv->pipeline);
gegl_node_process (output);
- priv->bbox = gegl_node_get_bounding_box (output);
ret_val = g_object_ref (output);
@@ -788,7 +786,6 @@ photos_base_item_process (PhotosBaseItem *self, GCancellable *cancellable, GErro
output = photos_pipeline_get_output (priv->pipeline);
gegl_node_process (output);
- priv->bbox = gegl_node_get_bounding_box (output);
}
@@ -1226,13 +1223,6 @@ photos_base_item_get_author (PhotosBaseItem *self)
}
-void
-photos_base_item_get_bbox (PhotosBaseItem *self, GeglRectangle *out_bbox)
-{
- *out_bbox = self->priv->bbox;
-}
-
-
gint64
photos_base_item_get_date_created (PhotosBaseItem *self)
{
diff --git a/src/photos-base-item.h b/src/photos-base-item.h
index eb84a0b..4d913da 100644
--- a/src/photos-base-item.h
+++ b/src/photos-base-item.h
@@ -108,8 +108,6 @@ gchar *photos_base_item_download_finish (PhotosBaseItem *se
const gchar *photos_base_item_get_author (PhotosBaseItem *self);
-void photos_base_item_get_bbox (PhotosBaseItem *self, GeglRectangle *out_bbox);
-
gint64 photos_base_item_get_date_created (PhotosBaseItem *self);
const gchar *photos_base_item_get_default_app_name (PhotosBaseItem *self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]