[gnome-photos/wip/rishi/edit-mode: 13/22] base-item: Remove photos_base_item_get_bbox



commit 91969db4e833760336b52af926083d3faf559a41
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 a3426ca..482d239 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);
 }
 
 
@@ -1227,13 +1224,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]