[gimp] wind: Remove dead assignments (and variables)



commit d72c6f6cf55f09408108466f0821286215cc8a96
Author: Mukund Sivaraman <muks banu com>
Date:   Mon Oct 3 18:52:13 2011 +0530

    wind: Remove dead assignments (and variables)

 plug-ins/common/wind.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/plug-ins/common/wind.c b/plug-ins/common/wind.c
index be7e58a..eadb41d 100644
--- a/plug-ins/common/wind.c
+++ b/plug-ins/common/wind.c
@@ -286,7 +286,7 @@ render_blast (GimpDrawable *drawable,
               edge_t        edge,
               GimpPreview  *preview)
 {
-  gint          x1, x2, y1, y2;
+  gint          x1, y1, y2;
   gint          width;
   gint          height;
   gint          bytes = drawable->bpp;
@@ -302,7 +302,6 @@ render_blast (GimpDrawable *drawable,
       gimp_preview_get_position (preview, &x1, &y1);
       gimp_preview_get_size (preview, &width, &height);
 
-      x2 = x1 + width;
       y2 = y1 + height;
 
       preview_buffer = g_new (guchar, width * height * bytes);
@@ -314,7 +313,6 @@ render_blast (GimpDrawable *drawable,
         {
           gimp_progress_init (_("Rendering blast"));
 
-          x2 = x1 + width;
           y2 = y1 + height;
 
           gimp_pixel_rgn_init (&dest_region, drawable,
@@ -426,7 +424,7 @@ render_wind (GimpDrawable *drawable,
   gint          row;
   guchar       *sb, *preview_buffer = NULL;
   gint          lpi;
-  gint          x1, y1, x2, y2;
+  gint          x1, y1, y2;
 
   bytes = drawable->bpp;
 
@@ -435,7 +433,6 @@ render_wind (GimpDrawable *drawable,
       gimp_preview_get_position (preview, &x1, &y1);
       gimp_preview_get_size (preview, &width, &height);
 
-      x2 = x1 + width;
       y2 = y1 + height;
 
       preview_buffer = g_new (guchar, width * height * bytes);
@@ -447,7 +444,6 @@ render_wind (GimpDrawable *drawable,
         {
           gimp_progress_init (_("Rendering wind"));
 
-          x2 = x1 + width;
           y2 = y1 + height;
 
           gimp_pixel_rgn_init (&dest_region, drawable,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]