[gegl] operations/common-gpl3+/polar-coordinates: Remove redundant code
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] operations/common-gpl3+/polar-coordinates: Remove redundant code
- Date: Fri, 22 Dec 2017 23:53:14 +0000 (UTC)
commit 12d4374efc39bb3f6a1022df91d034d9e9419586
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Dec 19 08:05:47 2017 +0100
operations/common-gpl3+/polar-coordinates: 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+/polar-coordinates.c | 16 +---------------
1 files changed, 1 insertions(+), 15 deletions(-)
---
diff --git a/operations/common-gpl3+/polar-coordinates.c b/operations/common-gpl3+/polar-coordinates.c
index 3498bba..487e218 100644
--- a/operations/common-gpl3+/polar-coordinates.c
+++ b/operations/common-gpl3+/polar-coordinates.c
@@ -395,24 +395,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
@@ -425,7 +412,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]