mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-21 23:28:44 +05:00
Removed CostForIntervals func
This commit is contained in:
committed by
Dan Christian Bogos
parent
869da96a64
commit
8c3b0343d6
@@ -918,7 +918,6 @@ func (ext *APIBalance) AsBalance() (balance *Balance, err error) {
|
||||
}
|
||||
}
|
||||
return
|
||||
|
||||
}
|
||||
|
||||
// APICostIncrement represent one CostIncrement inside an APIBalance
|
||||
|
||||
@@ -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) {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user