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



commit 9c583124dfc4fe703dabfdad3605708c8ba0ec8d
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 78b1749..e0ddea2 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;
@@ -751,7 +750,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);
 
@@ -796,7 +794,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);
 }
 
 
@@ -1234,13 +1231,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 eb70b82..ac8cec3 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]