[gegl] operations/common/load: Remove unused prepare implementation



commit 5a937c56d27cbb4a717c4534caaa50c413e4279b
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu Jan 14 16:38:14 2016 +0100

    operations/common/load: Remove unused prepare implementation
    
    This looks like a relic from the past before the new graph processor.
    The prepare method was so far not being invoked on meta operations and
    the format is already being set by the child operations.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=760628

 operations/common/load.c |   15 ---------------
 1 files changed, 0 insertions(+), 15 deletions(-)
---
diff --git a/operations/common/load.c b/operations/common/load.c
index 317cab9..ecc5627 100644
--- a/operations/common/load.c
+++ b/operations/common/load.c
@@ -200,20 +200,6 @@ my_set_property (GObject      *gobject,
 }
 
 static void
-prepare (GeglOperation *operation)
-{
-  GeglOp  *self = GEGL_OP (operation);
-  GeglOperation *op;
-
-  /* forward the set BablFormat of the image loader on the meta-op itself,
-   * making potential cache buffers be created with the proper format, there
-   * might be cleaner ways of achieving this.
-   */
-  g_object_get (self->load, "gegl-operation", &op, NULL);
-  gegl_operation_set_format (operation, "output", gegl_operation_get_format (op, "output"));
-}
-
-static void
 gegl_op_class_init (GeglOpClass *klass)
 {
   GObjectClass       *object_class    = G_OBJECT_CLASS (klass);
@@ -223,7 +209,6 @@ gegl_op_class_init (GeglOpClass *klass)
 
   operation_class->attach = attach;
   operation_class->detect = detect;
-  operation_class->prepare = prepare;
   operation_class->no_cache = TRUE;
 
   gegl_operation_class_set_keys (operation_class,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]