[gegl] operations/common-gpl3+/cartoon: Remove redundant code



commit 1f0bde384d1a2d486b9f6a64b4e7653e7bbe3aa2
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Dec 18 21:28:43 2017 +0100

    operations/common-gpl3+/cartoon: Remove redundant code
    
    GeglOperationFilter::get_bounding_box already forwards its source
    bounding box. There is no need to provide an implementation that does
    the same.

 operations/common-gpl3+/cartoon.c |   14 --------------
 1 files changed, 0 insertions(+), 14 deletions(-)
---
diff --git a/operations/common-gpl3+/cartoon.c b/operations/common-gpl3+/cartoon.c
index 1ef0b94..2fa513d 100644
--- a/operations/common-gpl3+/cartoon.c
+++ b/operations/common-gpl3+/cartoon.c
@@ -169,19 +169,6 @@ prepare (GeglOperation *operation)
 }
 
 static GeglRectangle
-get_bounding_box (GeglOperation *operation)
-{
-  GeglRectangle *region;
-
-  region = gegl_operation_source_get_bounding_box (operation, "input");
-
-  if (region != NULL)
-    return *region;
-  else
-    return *GEGL_RECTANGLE (0, 0, 0, 0);
-}
-
-static GeglRectangle
 get_required_for_output (GeglOperation       *operation,
                          const gchar         *input_pad,
                          const GeglRectangle *output_roi)
@@ -303,7 +290,6 @@ gegl_op_class_init (GeglOpClass *klass)
   filter_class    = GEGL_OPERATION_FILTER_CLASS (klass);
 
   operation_class->prepare                 = prepare;
-  operation_class->get_bounding_box        = get_bounding_box;
   operation_class->get_cached_region       = get_cached_region;
   operation_class->threaded                = FALSE;
   operation_class->get_required_for_output = get_required_for_output;


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