diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2018-03-12 22:40:25 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2018-03-14 20:25:12 +0100 |
| commit | 98258282af54a8ec315aaa216d48f890dd09bbdf (patch) | |
| tree | 7e973947069e4479260613503f2cbcf2fedb05ad /src | |
| parent | 4ba4bf25400271423c4cc94f97d814d8489ae46e (diff) | |
| download | PROJ-98258282af54a8ec315aaa216d48f890dd09bbdf.tar.gz PROJ-98258282af54a8ec315aaa216d48f890dd09bbdf.zip | |
Remove useless code (the variable is updated, but no longer used in the loop, and reinitialized at the next iteration) (spotted by clang static analyzer)
The bug dates back from the original commit of src/PJ_lsat.c
src/PJ_misrsom.c has likely copied & pasted from PJ_lsat.c
Diffstat (limited to 'src')
| -rw-r--r-- | src/PJ_lsat.c | 2 | ||||
| -rw-r--r-- | src/PJ_misrsom.c | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/src/PJ_lsat.c b/src/PJ_lsat.c index 4b77f3d6..7e1567e1 100644 --- a/src/PJ_lsat.c +++ b/src/PJ_lsat.c @@ -61,8 +61,6 @@ static XY e_forward (LP lp, PJ *P) { /* Ellipsoidal, forward */ sav = lampp; lamtp = lp.lam + Q->p22 * lampp; cl = cos(lamtp); - if (fabs(cl) < TOL) - lamtp -= TOL; if( cl < 0 ) fac = lampp + sin(lampp) * M_HALFPI; else diff --git a/src/PJ_misrsom.c b/src/PJ_misrsom.c index c25ca597..b9b97117 100644 --- a/src/PJ_misrsom.c +++ b/src/PJ_misrsom.c @@ -78,8 +78,6 @@ static XY e_forward (LP lp, PJ *P) { /* Ellipsoidal, forward */ sav = lampp; lamtp = lp.lam + Q->p22 * lampp; cl = cos(lamtp); - if (fabs(cl) < TOL) - lamtp -= TOL; if( cl < 0 ) fac = lampp + sin(lampp) * M_HALFPI; else |
