[gegl] fractal-trace: Remove redundant code



commit d553dd870fb38a31c13f8888e7fdb5df3dd40f62
Author: Mukund Sivaraman <muks banu com>
Date:   Thu Jun 30 21:17:04 2011 +0530

    fractal-trace: Remove redundant code

 operations/workshop/fractal-trace.c |   17 +----------------
 1 files changed, 1 insertions(+), 16 deletions(-)
---
diff --git a/operations/workshop/fractal-trace.c b/operations/workshop/fractal-trace.c
index ee11c8e..f477eb3 100644
--- a/operations/workshop/fractal-trace.c
+++ b/operations/workshop/fractal-trace.c
@@ -254,18 +254,6 @@ process (GeglOperation       *operation,
 }
 
 static GeglRectangle
-get_effective_area (GeglOperation *operation)
-{
-  GeglRectangle  result = {0,0,0,0};
-  GeglRectangle *in_rect = gegl_operation_source_get_bounding_box (operation, "input");
-
-  gegl_rectangle_copy(&result, in_rect);
-
-  return result;
-}
-
-
-static GeglRectangle
 get_bounding_box (GeglOperation *operation)
 {
   GeglRectangle  result = {0,0,0,0};
@@ -277,15 +265,12 @@ get_bounding_box (GeglOperation *operation)
   return *in_rect;
 }
 
-
-/* Compute the input rectangle required to compute the specified region of interest (roi).
- */
 static GeglRectangle
 get_required_for_output (GeglOperation       *operation,
                          const gchar         *input_pad,
                          const GeglRectangle *roi)
 {
-  return get_effective_area (operation);
+  return get_bounding_box (operation);
 }
 
 



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