From a4a1cebe729c6eb3843b3a646d8e5f1cbb50920e Mon Sep 17 00:00:00 2001 From: Kristian Evers Date: Mon, 7 May 2018 21:31:58 +0200 Subject: Clean readability-redundant-control-flow clang-tidy warnings --- src/PJ_helmert.c | 3 --- src/PJ_isea.c | 2 -- src/geocent.c | 1 - src/pj_internal.c | 3 --- 4 files changed, 9 deletions(-) (limited to 'src') diff --git a/src/PJ_helmert.c b/src/PJ_helmert.c index 5ff8c5d2..59864136 100644 --- a/src/PJ_helmert.c +++ b/src/PJ_helmert.c @@ -145,7 +145,6 @@ static void update_parameters(PJ *P) { proj_log_trace(P, "rz: %g", Q->opk.k); proj_log_trace(P, "theta: %g", Q->theta); } - return; } /**************************************************************************/ @@ -302,8 +301,6 @@ static void build_rot_matrix(PJ *P) { proj_log_trace(P, " | % 6.6g % 6.6g % 6.6g |", R10, R11, R12); proj_log_trace(P, " | % 6.6g % 6.6g % 6.6g |", R20, R21, R22); } - - return; } diff --git a/src/PJ_isea.c b/src/PJ_isea.c index 3e941c77..750587a3 100644 --- a/src/PJ_isea.c +++ b/src/PJ_isea.c @@ -608,7 +608,6 @@ isea_orient_isea(struct isea_dgg * g) g->o_lat = ISEA_STD_LAT; g->o_lon = ISEA_STD_LON; g->o_az = 0.0; - return; } ISEA_STATIC @@ -620,7 +619,6 @@ isea_orient_pole(struct isea_dgg * g) g->o_lat = M_PI / 2.0; g->o_lon = 0.0; g->o_az = 0; - return; } ISEA_STATIC diff --git a/src/geocent.c b/src/geocent.c index a8cec043..c023bdd3 100644 --- a/src/geocent.c +++ b/src/geocent.c @@ -432,6 +432,5 @@ void pj_Convert_Geocentric_To_Geodetic (GeocentricInfo *gi, /* ellipsoidal (geodetic) latitude */ *Latitude=atan2(SPHI, fabs(CPHI)); - return; #endif /* defined(USE_ITERATIVE_METHOD) */ } /* END OF Convert_Geocentric_To_Geodetic */ diff --git a/src/pj_internal.c b/src/pj_internal.c index dc528649..a6093c40 100644 --- a/src/pj_internal.c +++ b/src/pj_internal.c @@ -134,7 +134,6 @@ void proj_context_set (PJ *P, PJ_CONTEXT *ctx) { if (0==ctx) ctx = pj_get_default_ctx (); pj_set_ctx (P, ctx); - return; } @@ -143,7 +142,6 @@ void proj_context_inherit (PJ *parent, PJ *child) { pj_set_ctx (child, pj_get_default_ctx()); else pj_set_ctx (child, pj_get_ctx(parent)); - return; } @@ -361,7 +359,6 @@ to that context. if (0==ctx) ctx = pj_get_default_ctx(); pj_ctx_set_errno (ctx, err); - return; } /* logging */ -- cgit v1.2.3