From 8c3b0343d6576acd7b1015b8aa2d302b2669ac5d Mon Sep 17 00:00:00 2001 From: porosnicuadrian Date: Fri, 8 Oct 2021 17:39:03 +0300 Subject: [PATCH] Removed CostForIntervals func --- utils/account.go | 1 - utils/librates.go | 11 ----------- 2 files changed, 12 deletions(-) diff --git a/utils/account.go b/utils/account.go index c2dbd3da1..ca7eb79b6 100644 --- a/utils/account.go +++ b/utils/account.go @@ -918,7 +918,6 @@ func (ext *APIBalance) AsBalance() (balance *Balance, err error) { } } return - } // APICostIncrement represent one CostIncrement inside an APIBalance diff --git a/utils/librates.go b/utils/librates.go index b29d8aab9..feb0d9b8c 100644 --- a/utils/librates.go +++ b/utils/librates.go @@ -706,17 +706,6 @@ func (rIcr *RateSIncrement) Cost(rts map[string]*IntervalRate) (cost *decimal.Bi return rIcr.cost } -/* -// CostForIntervals sums the costs for all intervals -func CostForIntervals(rtIvls []*RateSInterval, rts map[string]*IntervalRate) (cost *decimal.Big) { - cost = new(decimal.Big) - for _, rtIvl := range rtIvls { - cost = SumBig(cost, rtIvl.Cost(rts)) - } - return -} -*/ - // CompressIntervals will compress intervals which equal func CompressIntervals(rtIvls []*RateSInterval) { }