From 4b75e13518c7d7692dee61020d78521886b6071a Mon Sep 17 00:00:00 2001 From: Mukund Sivaraman Date: Thu, 6 Oct 2011 08:53:34 +0530 Subject: [PATCH] polar-coords: Remove redundant assignment --- plug-ins/common/polar-coords.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plug-ins/common/polar-coords.c b/plug-ins/common/polar-coords.c index 5cce828108..89e8f70686 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) {