Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 5d059a3

Browse files
committed
Remove unused function
1 parent 21006b4 commit 5d059a3

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

wallet/listeners/transaction_listener.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package bitcoin
22

33
import (
4-
"math"
54
"math/big"
65
"sync"
76
"time"
@@ -298,18 +297,6 @@ func (l *TransactionListener) processSalePayment(txid string, output wallet.Tran
298297
}
299298
}
300299

301-
func currencyDivisibilityFromContract(mw multiwallet.MultiWallet, contract *pb.RicardianContract) uint {
302-
var currencyDivisibility = contract.VendorListings[0].Item.PriceCurrency.Divisibility
303-
if currencyDivisibility != 0 {
304-
return uint(currencyDivisibility)
305-
}
306-
wallet, err := mw.WalletForCurrencyCode(contract.BuyerOrder.Payment.AmountCurrency.Code)
307-
if err == nil {
308-
return uint(math.Log10(float64(wallet.ExchangeRates().UnitsPerCoin())))
309-
}
310-
return core.DefaultCurrencyDivisibility
311-
}
312-
313300
func (l *TransactionListener) processPurchasePayment(txid string, output wallet.TransactionOutput, contract *pb.RicardianContract, state pb.OrderState, funded bool, records []*wallet.TransactionRecord) {
314301
funding := output.Value
315302
for _, r := range records {

0 commit comments

Comments
 (0)