[gnome-photos/wip/rishi/edit-mode: 14/26] base-item: Remove photos_base_item_get_bbox



commit a302b6b42c7307d6a3153abd217a48ffb4eb6051
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 3799a15..32984c5 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;
@@ -750,7 +749,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);
 
@@ -795,7 +793,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);
 }
 
 
@@ -1232,13 +1229,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 bedd8ee..c4794d2 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]