mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Removed history service
This commit is contained in:
committed by
Dan Christian Bogos
parent
a31dddfc72
commit
17b16a415a
@@ -19,10 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||
package engine
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"math"
|
||||
|
||||
"github.com/cgrates/cgrates/history"
|
||||
)
|
||||
|
||||
/*
|
||||
@@ -99,16 +96,6 @@ func (rp *RatingPlan) Equal(o *RatingPlan) bool {
|
||||
return rp.Id == o.Id
|
||||
}
|
||||
|
||||
// history record method
|
||||
func (rp *RatingPlan) GetHistoryRecord() history.Record {
|
||||
js, _ := json.Marshal(rp)
|
||||
return history.Record{
|
||||
Id: rp.Id,
|
||||
Filename: history.RATING_PLANS_FN,
|
||||
Payload: js,
|
||||
}
|
||||
}
|
||||
|
||||
// IsValid determines if the rating plan covers a continous period of time
|
||||
func (rp *RatingPlan) isContinous() bool {
|
||||
weekdays := make([]int, 7)
|
||||
|
||||
Reference in New Issue
Block a user