[gegl] operation-source: Remove redundant virtual method implementation
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] operation-source: Remove redundant virtual method implementation
- Date: Mon, 18 Dec 2017 20:36:50 +0000 (UTC)
commit a08a937c8d1991e9d0f3b6dd7e92a7f2c71332c7
Author: Debarshi Ray <debarshir gnome org>
Date: Mon Dec 18 19:42:50 2017 +0100
operation-source: Remove redundant virtual method implementation
By default, when there is no implementation of the get_cached_region
virtual method, gegl_operation_get_cached_region will return the
specified output ROI. Therefore, there is no need to provide an
implementation that does the same.
gegl/operation/gegl-operation-source.c | 10 ----------
1 files changed, 0 insertions(+), 10 deletions(-)
---
diff --git a/gegl/operation/gegl-operation-source.c b/gegl/operation/gegl-operation-source.c
index eb89a8e..62470df 100644
--- a/gegl/operation/gegl-operation-source.c
+++ b/gegl/operation/gegl-operation-source.c
@@ -42,8 +42,6 @@ static GeglRectangle get_bounding_box (GeglOperation *self);
static GeglRectangle get_required_for_output (GeglOperation *operation,
const gchar *input_pad,
const GeglRectangle *roi);
-static GeglRectangle get_cached_region (GeglOperation *operation,
- const GeglRectangle *roi);
static void
@@ -53,7 +51,6 @@ gegl_operation_source_class_init (GeglOperationSourceClass * klass)
operation_class->process = gegl_operation_source_process;
operation_class->attach = attach;
- operation_class->get_cached_region = get_cached_region;
operation_class->get_bounding_box = get_bounding_box;
operation_class->get_required_for_output = get_required_for_output;
@@ -207,10 +204,3 @@ get_required_for_output (GeglOperation *operation,
{
return *roi;
}
-
-static GeglRectangle
-get_cached_region (GeglOperation *operation,
- const GeglRectangle *roi)
-{
- return *roi;
-}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]