Removed CostForIntervals func

This commit is contained in:
porosnicuadrian
2021-10-08 17:39:03 +03:00
committed by Dan Christian Bogos
parent 869da96a64
commit 8c3b0343d6
2 changed files with 0 additions and 12 deletions

View File

@@ -918,7 +918,6 @@ func (ext *APIBalance) AsBalance() (balance *Balance, err error) {
}
}
return
}
// APICostIncrement represent one CostIncrement inside an APIBalance

View File

@@ -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) {
}