[gimp/metadata-browser] polar-coords: Remove redundant assignment



commit bbfea4dc04972b0a8428bf16b77674375084459d
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]