From 768b9b0e8fbc15401076779612905b1e1a5cff41 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Fri, 28 Jul 2017 22:51:59 -0700 Subject: [PATCH] Remove precision specification as it seems detrimental. --- src/org/nwapw/abacus/config/Configuration.java | 4 ---- src/org/nwapw/abacus/config/ConfigurationObject.java | 9 --------- 2 files changed, 13 deletions(-) diff --git a/src/org/nwapw/abacus/config/Configuration.java b/src/org/nwapw/abacus/config/Configuration.java index d22d50d..2039d60 100644 --- a/src/org/nwapw/abacus/config/Configuration.java +++ b/src/org/nwapw/abacus/config/Configuration.java @@ -6,10 +6,6 @@ package org.nwapw.abacus.config; */ public class Configuration { - /** - * The precision to which the calculator should operator. - */ - public int decimalPrecision; /** * The type of number this calculator should use. */ diff --git a/src/org/nwapw/abacus/config/ConfigurationObject.java b/src/org/nwapw/abacus/config/ConfigurationObject.java index 89f1e2e..1f0c066 100644 --- a/src/org/nwapw/abacus/config/ConfigurationObject.java +++ b/src/org/nwapw/abacus/config/ConfigurationObject.java @@ -39,19 +39,10 @@ public class ConfigurationObject { */ private Configuration getDefaultConfig(){ configuration = new Configuration(); - configuration.decimalPrecision = -1; configuration.numberType = "naive"; return configuration; } - /** - * Returns the configured, user-requested precision. - * @return the precision. - */ - public int getPrecision(){ - return configuration.decimalPrecision; - } - /** * Returns the implementation the user has requested to * represent their numbers.