You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2019/12/06 18:28:58 UTC

[commons-numbers] 04/19: Remove unused private method

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 4874158391c15e78c2905fba37414a2c428fe5e7
Author: aherbert <ah...@apache.org>
AuthorDate: Fri Dec 6 13:07:06 2019 +0000

    Remove unused private method
---
 .../apache/commons/numbers/complex/Complex.java    | 33 ----------------------
 1 file changed, 33 deletions(-)

diff --git a/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java b/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java
index 6e3f4fd..e239471 100644
--- a/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java
+++ b/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java
@@ -1901,39 +1901,6 @@ public final class Complex implements Serializable  {
     }
 
     /**
-     * Creates a function to transform this Complex into a Complex with positive imaginary
-     * components. This is used to maintain the conjugate equality of a function
-     * f(z) by always computing the result on positive valued input. Given:
-     *
-     * <pre>
-     * conj(f(z)) = f(conj(z))
-     * </pre>
-     *
-     * <p>The Complex can be transformed to the positive domain using the {@link #conjugate()}
-     * function, the function f(z) computed and the result transformed back using the same
-     * mapping function to the original domain.</p>
-     *
-     * <pre>
-     * g(z) = mapImaginaryToPositiveDomain()
-     * f(z) = g(f(g(z)))
-     * </pre>
-     *
-     * <p>If the Complex is already in the correct domain then this returns an identify
-     * function. The function will be computed as:</p>
-     *
-     * <pre>
-     * imaginary    g(z)
-     * +            identity
-     * -            conjugate
-     * </pre>
-     *
-     * @return the function
-     */
-    private UnaryOperator<Complex> mapImaginaryToPositiveDomain() {
-        return negative(imaginary) ? Complex::conjugate : Complex::identity;
-    }
-
-    /**
      * Returns a {@code Complex} whose real value is negated.
      *
      * @return {@code Complex(-real, imaginary)}.