Skip to content

Commit

Permalink
Use static method, remove unused formatter field
Browse files Browse the repository at this point in the history
  • Loading branch information
chimp1984 committed Sep 17, 2019
1 parent 37eef84 commit b26a156
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/bisq/core/util/BsqFormatter.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,11 @@ public String formatBTCSatoshis(long satoshi) {
}

public String formatBTCWithCode(long satoshi) {
return super.formatCoinWithCode(satoshi, btcCoinFormat);
return BSFormatter.formatCoinWithCode(satoshi, btcCoinFormat);
}

public String formatBTCWithCode(Coin coin) {
return super.formatCoinWithCode(coin, btcCoinFormat);
return BSFormatter.formatCoinWithCode(coin, btcCoinFormat);
}

public String formatBTC(Coin coin) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,10 @@

public class SecurityDepositValidator extends NumberValidator {

private final BSFormatter formatter;
private PaymentAccount paymentAccount;

@Inject
public SecurityDepositValidator(BSFormatter formatter) {
this.formatter = formatter;
public SecurityDepositValidator() {
}

public void setPaymentAccount(PaymentAccount paymentAccount) {
Expand Down

0 comments on commit b26a156

Please sign in to comment.