From 1ee90a049522fc17eae6d1220828ec04a02ab898 Mon Sep 17 00:00:00 2001 From: Chi Nul Date: Sun, 19 Aug 2018 13:28:08 +0200 Subject: [PATCH] Remove unused Price.getPrecision() method We use the smallestUnitExponent() defined in Altcoin / Fiat for this, so this private method was never used. --- src/main/java/bisq/core/monetary/Price.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/java/bisq/core/monetary/Price.java b/src/main/java/bisq/core/monetary/Price.java index 2724fae2..55073eac 100644 --- a/src/main/java/bisq/core/monetary/Price.java +++ b/src/main/java/bisq/core/monetary/Price.java @@ -75,10 +75,6 @@ else if (monetary instanceof Altcoin && this.monetary instanceof Altcoin) return Coin.ZERO; } - private static int getPrecision(String currencyCode) { - return CurrencyUtil.isCryptoCurrency(currencyCode) ? 8 : 4; - } - public String getCurrencyCode() { return monetary instanceof Altcoin ? ((Altcoin) monetary).getCurrencyCode() : ((Fiat) monetary).getCurrencyCode(); }