You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by er...@apache.org on 2019/02/27 00:20:14 UTC
[commons-numbers] branch fraction-dev updated: NUMBERS-74: minor:
removed unneeded variable
This is an automated email from the ASF dual-hosted git repository.
ericbarnhill pushed a commit to branch fraction-dev
in repository https://gitbox.apache.org/repos/asf/commons-numbers.git
The following commit(s) were added to refs/heads/fraction-dev by this push:
new 8de7ce2 NUMBERS-74: minor: removed unneeded variable
8de7ce2 is described below
commit 8de7ce20fb18291889d74d26349a9a777ca91ee6
Author: Eric Barnhill <er...@protonmail.ch>
AuthorDate: Tue Feb 26 16:20:07 2019 -0800
NUMBERS-74: minor: removed unneeded variable
---
.../src/main/java/org/apache/commons/numbers/fraction/Fraction.java | 1 -
1 file changed, 1 deletion(-)
diff --git a/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/Fraction.java b/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/Fraction.java
index 2e2a408..b35b23a 100644
--- a/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/Fraction.java
+++ b/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/Fraction.java
@@ -642,7 +642,6 @@ public class Fraction
* conform to the specification.
*/
public static Fraction parse(String s) {
- final int len = s.length();
final int slashLoc = s.indexOf("/");
// if no slash, parse as single number
if (slashLoc == -1) {