[gegl] mosaic: remove useless variable assignment (issue #244)
- From: Thomas Manni <tmanni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] mosaic: remove useless variable assignment (issue #244)
- Date: Mon, 1 Feb 2021 15:39:01 +0000 (UTC)
commit ac107bc01a60d09bc5d7aad677e8d59a7078479d
Author: Thomas Manni <thomas manni free fr>
Date: Mon Feb 1 16:27:12 2021 +0100
mosaic: remove useless variable assignment (issue #244)
operations/common-gpl3+/mosaic.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/operations/common-gpl3+/mosaic.c b/operations/common-gpl3+/mosaic.c
index efacaf48b..bcf858973 100644
--- a/operations/common-gpl3+/mosaic.c
+++ b/operations/common-gpl3+/mosaic.c
@@ -549,19 +549,17 @@ gaussian_deriv (gfloat *src_rgn,
gfloat *sum;
gfloat val;
gfloat total;
- gint length;
gfloat initial_p[4], initial_m[4];
- gint width = result->width, height = result->height;
+ gint width = result->width;
+ gint height = result->height;
+ gint length = 3;
/* allocate buffers for rows/cols */
- length = MAX (result->width, result->height) * NB_CPN;
-
- length = 3;
+ buf = g_new (gfloat, MAX (width, height) * NB_CPN);
/* initialize */
curve = curve_array + length;
sum = sum_array + length;
- buf = g_new (gfloat, MAX (width, height) * NB_CPN);
if (direction == GEGL_ORIENTATION_VERTICAL)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]