[gegl] operations/common-gpl3+/fractal-trace: Remove redundant code
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] operations/common-gpl3+/fractal-trace: Remove redundant code
- Date: Wed, 20 Dec 2017 07:10:26 +0000 (UTC)
commit fc26521e4e9dbfd6b8eea61f6fe235c3930a98cd
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Dec 19 07:46:19 2017 +0100
operations/common-gpl3+/fractal-trace: 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+/fractal-trace.c | 16 +---------------
1 files changed, 1 insertions(+), 15 deletions(-)
---
diff --git a/operations/common-gpl3+/fractal-trace.c b/operations/common-gpl3+/fractal-trace.c
index 0cbe0a8..8190661 100644
--- a/operations/common-gpl3+/fractal-trace.c
+++ b/operations/common-gpl3+/fractal-trace.c
@@ -223,24 +223,11 @@ process (GeglOperation *operation,
}
static GeglRectangle
-get_bounding_box (GeglOperation *operation)
-{
- GeglRectangle result = { 0, 0, 0, 0 };
- GeglRectangle *in_rect;
-
- in_rect = gegl_operation_source_get_bounding_box (operation, "input");
- if (!in_rect)
- return result;
-
- return *in_rect;
-}
-
-static GeglRectangle
get_required_for_output (GeglOperation *operation,
const gchar *input_pad,
const GeglRectangle *roi)
{
- return get_bounding_box (operation);
+ return gegl_operation_get_bounding_box (operation);
}
static void
@@ -253,7 +240,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_required_for_output = get_required_for_output;
filter_class->process = process;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]