This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-numbers.git

commit 1d23c5997d8b16e5652f4af3ef34705646e5b776
Author: Alex Herbert <aherb...@apache.org>
AuthorDate: Tue Mar 25 14:55:10 2025 +0000

    Sonar fix: Remove unused code
---
 .../test/java/org/apache/commons/numbers/complex/ComplexTest.java   | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git 
a/commons-numbers-complex/src/test/java/org/apache/commons/numbers/complex/ComplexTest.java
 
b/commons-numbers-complex/src/test/java/org/apache/commons/numbers/complex/ComplexTest.java
index 286b81c0..00ff40db 100644
--- 
a/commons-numbers-complex/src/test/java/org/apache/commons/numbers/complex/ComplexTest.java
+++ 
b/commons-numbers-complex/src/test/java/org/apache/commons/numbers/complex/ComplexTest.java
@@ -2148,14 +2148,10 @@ class ComplexTest {
     private static void assertAbsVsLog(int samples, Supplier<Complex> 
supplier) {
         // Note: All methods implement scaling to ensure the magnitude can be 
computed.
         // Try very large or small numbers that will over/underflow to test 
that the
-        // scaling
-        // is consistent.
+        // scaling is consistent.
         for (int i = 0; i < samples; i++) {
             final Complex z = supplier.get();
             final double abs = z.abs();
-            final double x = Math.abs(z.getReal());
-            final double y = Math.abs(z.getImaginary());
-
             // log(x + iy) = log(|x + i y|) + i arg(x + i y)
             // Only test the real component
             final Complex c = z.log();

Reply via email to