Removed history service

This commit is contained in:
edwardro22
2018-01-04 11:46:25 +02:00
committed by Dan Christian Bogos
parent a31dddfc72
commit 17b16a415a
44 changed files with 15 additions and 928 deletions

View File

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