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



commit 4c342319baab33b86dae04286db5b8ffe5119572
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Dec 19 08:09:14 2017 +0100

    operations/common-gpl3+/whirl-pinch: 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+/whirl-pinch.c |   15 ---------------
 1 files changed, 0 insertions(+), 15 deletions(-)
---
diff --git a/operations/common-gpl3+/whirl-pinch.c b/operations/common-gpl3+/whirl-pinch.c
index d8eae55..8c7ad54 100644
--- a/operations/common-gpl3+/whirl-pinch.c
+++ b/operations/common-gpl3+/whirl-pinch.c
@@ -192,20 +192,6 @@ apply_whirl_pinch (gdouble              whirl,
 
 /*****************************************************************************/
 
-/* Compute the region for which this operation is defined.
- */
-static GeglRectangle
-get_bounding_box (GeglOperation *operation)
-{
-  GeglRectangle  result = {0,0,0,0};
-  GeglRectangle *in_rect = gegl_operation_source_get_bounding_box (operation, "input");
-
-  if (!in_rect)
-    return result;
-  else
-    return *in_rect;
-}
-
 /* Compute the input rectangle required to compute the specified region of interest (roi).
  */
 static GeglRectangle
@@ -267,7 +253,6 @@ gegl_op_class_init (GeglOpClass *klass)
 
   filter_class->process = process;
   operation_class->prepare = prepare;
-  operation_class->get_bounding_box = get_bounding_box;
   operation_class->get_required_for_output = get_required_for_output;
 
   gegl_operation_class_set_keys (operation_class,


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