Unused argument (found by PMD).

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1421280 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gilles Sadowski 2012-12-13 13:07:57 +00:00
parent 28c30e9190
commit 3f7e2e38ce
1 changed files with 4 additions and 6 deletions

View File

@ -2258,7 +2258,7 @@ public class FastMath {
xa = reduceResults[1]; xa = reduceResults[1];
xb = reduceResults[2]; xb = reduceResults[2];
} else if (xa > 1.5707963267948966) { } else if (xa > 1.5707963267948966) {
final CodyWaite cw = new CodyWaite(xa, xb); final CodyWaite cw = new CodyWaite(xa);
quadrant = cw.getK() & 3; quadrant = cw.getK() & 3;
xa = cw.getRemA(); xa = cw.getRemA();
xb = cw.getRemB(); xb = cw.getRemB();
@ -2313,7 +2313,7 @@ public class FastMath {
xa = reduceResults[1]; xa = reduceResults[1];
xb = reduceResults[2]; xb = reduceResults[2];
} else if (xa > 1.5707963267948966) { } else if (xa > 1.5707963267948966) {
final CodyWaite cw = new CodyWaite(xa, xb); final CodyWaite cw = new CodyWaite(xa);
quadrant = cw.getK() & 3; quadrant = cw.getK() & 3;
xa = cw.getRemA(); xa = cw.getRemA();
xb = cw.getRemB(); xb = cw.getRemB();
@ -2378,7 +2378,7 @@ public class FastMath {
xa = reduceResults[1]; xa = reduceResults[1];
xb = reduceResults[2]; xb = reduceResults[2];
} else if (xa > 1.5707963267948966) { } else if (xa > 1.5707963267948966) {
final CodyWaite cw = new CodyWaite(xa, xb); final CodyWaite cw = new CodyWaite(xa);
quadrant = cw.getK() & 3; quadrant = cw.getK() & 3;
xa = cw.getRemA(); xa = cw.getRemA();
xb = cw.getRemB(); xb = cw.getRemB();
@ -3803,10 +3803,8 @@ public class FastMath {
/** /**
* @param xa Argument. * @param xa Argument.
* @param xb Argument.
*/ */
CodyWaite(double xa, CodyWaite(double xa) {
double xb) {
// Estimate k. // Estimate k.
//k = (int)(xa / 1.5707963267948966); //k = (int)(xa / 1.5707963267948966);
int k = (int)(xa * 0.6366197723675814); int k = (int)(xa * 0.6366197723675814);