Ignore:
Timestamp:
2016-06-01T23:17:40+02:00 (3 years ago)
Author:
Don-vip
Message:

sonar - squid:S1854 - Dead stores should be removed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/projection/proj/SwissObliqueMercator.java

    r10001 r10308  
    102102        double lambda = l / alpha;
    103103        double phi = b;
    104         double s = 0;
    105104
    106105        double prevPhi = -1000;
     
    111110                throw new RuntimeException("Two many iterations");
    112111            prevPhi = phi;
    113             s = 1 / alpha * (log(tan(PI / 4 + b / 2)) - k) + ellps.e
     112            double s = 1 / alpha * (log(tan(PI / 4 + b / 2)) - k) + ellps.e
    114113            * log(tan(PI / 4 + asin(ellps.e * sin(phi)) / 2));
    115114            phi = 2 * atan(exp(s)) - PI / 2;
Note: See TracChangeset for help on using the changeset viewer.