[gimp] apply-canvas: Remove dead assignments (and variable)



commit 9780fe04be80fa3215a5baf1540d9ee69b47e0c1
Author: Mukund Sivaraman <muks banu com>
Date:   Tue Oct 4 14:14:18 2011 +0530

    apply-canvas: Remove dead assignments (and variable)

 plug-ins/common/apply-canvas.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/plug-ins/common/apply-canvas.c b/plug-ins/common/apply-canvas.c
index 71fdcd0..01dd61a 100644
--- a/plug-ins/common/apply-canvas.c
+++ b/plug-ins/common/apply-canvas.c
@@ -1353,7 +1353,7 @@ strucpi (GimpDrawable *drawable,
   guchar       *dest, *d;
   guchar       *cur_row;
   gint          row, col, rrow, rcol;
-  gint          x1, y1, x2, y2, varde;
+  gint          x1, y1, y2, varde;
   gint          xm, ym, offs;
   gfloat        mult;
   guchar       *preview_buffer = NULL;
@@ -1363,7 +1363,6 @@ strucpi (GimpDrawable *drawable,
       gimp_preview_get_position (preview, &x1, &y1);
       gimp_preview_get_size (preview, &width, &height);
 
-      x2 = x1 + width;
       y2 = y1 + height;
     }
   else
@@ -1378,7 +1377,6 @@ strucpi (GimpDrawable *drawable,
                                           &x1, &y1, &width, &height))
         return;
 
-      x2 = x1 + width;
       y2 = y1 + height;
     }
 



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