[gimp] polar-coords: Remove redundant assignment



commit 4b75e13518c7d7692dee61020d78521886b6071a
Author: Mukund Sivaraman <muks banu com>
Date:   Thu Oct 6 08:53:34 2011 +0530

    polar-coords: Remove redundant assignment

 plug-ins/common/polar-coords.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/plug-ins/common/polar-coords.c b/plug-ins/common/polar-coords.c
index 5cce828..89e8f70 100644
--- a/plug-ins/common/polar-coords.c
+++ b/plug-ins/common/polar-coords.c
@@ -387,9 +387,7 @@ calc_undistorted_coords (gdouble  wx,
 
   /* initialize */
 
-  phi = 0.0;
-  r   = 0.0;
-
+  phi    = 0.0;
   x1     = 0;
   y1     = 0;
   x2     = img_width;
@@ -438,7 +436,7 @@ calc_undistorted_coords (gdouble  wx,
             }
         }
 
-      r   = sqrt (SQR (wx - cen_x) + SQR (wy - cen_y));
+      r = sqrt (SQR (wx - cen_x) + SQR (wy - cen_y));
 
       if (wx != cen_x)
         {



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