Skip to content
This repository has been archived by the owner on Jun 17, 2020. It is now read-only.

Commit

Permalink
Remove unused Price.getPrecision() method
Browse files Browse the repository at this point in the history
We use the smallestUnitExponent() defined in Altcoin / Fiat for this,
so this private method was never used.
  • Loading branch information
chirhonul committed Aug 20, 2018
1 parent b468197 commit 1ee90a0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/main/java/bisq/core/monetary/Price.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 1ee90a0

Please sign in to comment.