aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--poi/src/main/java/org/apache/poi/ss/formula/functions/NumericFunction.java15
1 files changed, 0 insertions, 15 deletions
diff --git a/poi/src/main/java/org/apache/poi/ss/formula/functions/NumericFunction.java b/poi/src/main/java/org/apache/poi/ss/formula/functions/NumericFunction.java
index 3a3bc4760c..4402ed49d7 100644
--- a/poi/src/main/java/org/apache/poi/ss/formula/functions/NumericFunction.java
+++ b/poi/src/main/java/org/apache/poi/ss/formula/functions/NumericFunction.java
@@ -26,7 +26,6 @@ import java.math.BigDecimal;
import java.math.BigInteger;
import java.math.MathContext;
import java.text.DecimalFormat;
-import java.text.DecimalFormatSymbols;
import java.text.NumberFormat;
public abstract class NumericFunction implements Function {
@@ -104,20 +103,6 @@ public abstract class NumericFunction implements Function {
val = bigInt.doubleValue();
}
- StringBuilder decimalPlacesFormat = new StringBuilder();
- if (nPlaces > 0) {
- decimalPlacesFormat.append('.');
- }
- for (int i = 0; i < nPlaces; i++) {
- decimalPlacesFormat.append('0');
- }
- StringBuilder decimalFormatString = new StringBuilder();
- decimalFormatString.append("¤#,##0").append(decimalPlacesFormat)
- .append(";(¤#,##0").append(decimalPlacesFormat).append(')');
-
- DecimalFormatSymbols symbols = DecimalFormatSymbols.getInstance(LocaleUtil.getUserLocale());
- DecimalFormat df = new DecimalFormat(decimalFormatString.toString(), symbols);
-
DecimalFormat nf = (DecimalFormat) NumberFormat.getCurrencyInstance(LocaleUtil.getUserLocale());
int decimalPlaces = nPlaces < 0 ? 0 : nPlaces;
if (LocaleUtil.getUserLocale().getCountry().equalsIgnoreCase("US")) {