commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject [4/6] commons-numbers git commit: Deleted unused method.
Date Tue, 30 Jan 2018 15:39:38 GMT
Deleted unused method.


Project: http://git-wip-us.apache.org/repos/asf/commons-numbers/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-numbers/commit/662d201b
Tree: http://git-wip-us.apache.org/repos/asf/commons-numbers/tree/662d201b
Diff: http://git-wip-us.apache.org/repos/asf/commons-numbers/diff/662d201b

Branch: refs/heads/master
Commit: 662d201b68ed5100abf2ee40359734194850562d
Parents: 2e07396
Author: Gilles Sadowski <gilles@harfang.homelinux.org>
Authored: Tue Jan 30 15:56:54 2018 +0100
Committer: Gilles Sadowski <gilles@harfang.homelinux.org>
Committed: Tue Jan 30 15:56:54 2018 +0100

----------------------------------------------------------------------
 .../org/apache/commons/numbers/complex/Complex.java    | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-numbers/blob/662d201b/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java
----------------------------------------------------------------------
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 60e85c8..99888f2 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
@@ -1261,18 +1261,7 @@ public class Complex implements Serializable  {
         }
     }
 
-     /**
-     * Check that the argument is positive and throw a RuntimeException
-     * if it is not.
-     * @param arg {@code int} to check
-     */
-    private static void checkNotNegative(int arg) {
-        if (arg <= 0) {
-            throw new RuntimeException("Complex: Non-positive argument");
-        }
-    }
-
-     /**
+    /**
      * Check that the argument is positive and throw a RuntimeException
      * if it is not.
      * @param arg {@code double} to check


Mime
View raw message