[gimp] app: remove gimp_applicator_dup_apply_buffer()
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: remove gimp_applicator_dup_apply_buffer()
- Date: Thu, 27 Dec 2018 19:02:18 +0000 (UTC)
commit 12e83350bf562f2dc7f49acd9bb62f8d2587fab9
Author: Ell <ell_se yahoo com>
Date: Thu Dec 27 13:59:31 2018 -0500
app: remove gimp_applicator_dup_apply_buffer()
... nothing uses it after last commit.
app/gegl/gimpapplicator.c | 40 +++-------------------------------------
app/gegl/gimpapplicator.h | 4 ----
2 files changed, 3 insertions(+), 41 deletions(-)
---
diff --git a/app/gegl/gimpapplicator.c b/app/gegl/gimpapplicator.c
index acdc75aed6..16041f20e2 100644
--- a/app/gegl/gimpapplicator.c
+++ b/app/gegl/gimpapplicator.c
@@ -148,14 +148,8 @@ gimp_applicator_new (GeglNode *parent,
"operation", "gegl:translate",
NULL);
- applicator->dup_apply_buffer_node =
- gegl_node_new_child (applicator->node,
- "operation", "gegl:copy-buffer",
- NULL);
-
gegl_node_link_many (applicator->aux_node,
applicator->apply_offset_node,
- applicator->dup_apply_buffer_node,
NULL);
if (use_split_preview)
@@ -170,7 +164,7 @@ gimp_applicator_new (GeglNode *parent,
"operation", "gegl:nop",
NULL);
- gegl_node_link_many (applicator->dup_apply_buffer_node,
+ gegl_node_link_many (applicator->apply_offset_node,
applicator->preview_cache_node,
applicator->preview_crop_node,
NULL);
@@ -179,8 +173,8 @@ gimp_applicator_new (GeglNode *parent,
}
else
{
- gegl_node_connect_to (applicator->dup_apply_buffer_node, "output",
- applicator->mode_node, "aux");
+ gegl_node_connect_to (applicator->apply_offset_node, "output",
+ applicator->mode_node, "aux");
}
applicator->mask_node =
@@ -587,34 +581,6 @@ gimp_applicator_blit (GimpApplicator *applicator,
NULL, NULL, 0, GEGL_BLIT_DEFAULT);
}
-GeglBuffer *
-gimp_applicator_dup_apply_buffer (GimpApplicator *applicator,
- const GeglRectangle *rect)
-{
- GeglBuffer *buffer;
- GeglBuffer *shifted;
-
- g_return_val_if_fail (GIMP_IS_APPLICATOR (applicator), NULL);
- g_return_val_if_fail (rect != NULL, NULL);
-
- buffer = gegl_buffer_new (GEGL_RECTANGLE (0, 0, rect->width, rect->height),
- babl_format ("RGBA float"));
-
- shifted = g_object_new (GEGL_TYPE_BUFFER,
- "source", buffer,
- "shift-x", -rect->x,
- "shift-y", -rect->y,
- NULL);
-
- gegl_node_set (applicator->dup_apply_buffer_node,
- "buffer", shifted,
- NULL);
-
- g_object_unref (shifted);
-
- return buffer;
-}
-
GeglBuffer *
gimp_applicator_get_cache_buffer (GimpApplicator *applicator,
GeglRectangle **rectangles,
diff --git a/app/gegl/gimpapplicator.h b/app/gegl/gimpapplicator.h
index 154fefa0d3..4593859d63 100644
--- a/app/gegl/gimpapplicator.h
+++ b/app/gegl/gimpapplicator.h
@@ -48,8 +48,6 @@ struct _GimpApplicator
gint apply_offset_y;
GeglNode *apply_offset_node;
- GeglNode *dup_apply_buffer_node;
-
gboolean preview_enabled;
GeglRectangle preview_rect;
GeglNode *preview_cache_node;
@@ -127,8 +125,6 @@ void gimp_applicator_set_preview (GimpApplicator *applicator,
void gimp_applicator_blit (GimpApplicator *applicator,
const GeglRectangle *rect);
-GeglBuffer * gimp_applicator_dup_apply_buffer (GimpApplicator *applicator,
- const GeglRectangle *rect);
GeglBuffer * gimp_applicator_get_cache_buffer (GimpApplicator *applicator,
GeglRectangle **rectangles,
gint *n_rectangles);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]