removed merge timespans check

This commit is contained in:
Radu Ioan Fericean
2015-07-16 10:41:08 +03:00
parent 39700e1c66
commit 0b5591747f

View File

@@ -36,10 +36,6 @@ type CallCost struct {
// Merges the received timespan if they are similar (same activation period, same interval, same minute info.
func (cc *CallCost) Merge(other *CallCost) {
if len(cc.Timespans)-1 < 0 || len(other.Timespans) == 0 {
return
}
// just add all timespans
cc.Timespans = append(cc.Timespans, other.Timespans...)
cc.Cost += other.Cost
}