Removed unused constants

This commit is contained in:
Trial97
2019-08-07 15:45:39 +03:00
committed by Dan Christian Bogos
parent 5f7a5d856d
commit 5cbce1ec43
18 changed files with 304 additions and 357 deletions

View File

@@ -974,7 +974,7 @@ func (acc *Account) AsOldStructure() interface{} {
}
result := &Account{
Id: utils.OUT + ":" + acc.ID,
Id: utils.META_OUT + ":" + acc.ID,
BalanceMap: make(map[string]Balances, len(acc.BalanceMap)),
UnitCounters: make([]*UnitsCounter, len(acc.UnitCounters)),
ActionTriggers: make(ActionTriggers, len(acc.ActionTriggers)),
@@ -1037,7 +1037,7 @@ func (acc *Account) AsOldStructure() interface{} {
}
for key, values := range acc.BalanceMap {
if len(values) > 0 {
key += utils.OUT
key += utils.META_OUT
result.BalanceMap[key] = make(Balances, len(values))
for i, b := range values {
result.BalanceMap[key][i] = &Balance{

View File

@@ -104,7 +104,7 @@ func TestMultipleInputLeftMerge(t *testing.T) {
}
/*t1 = time.Date(2012, time.February, 2, 18, 01, 0, 0, time.UTC)
t2 = time.Date(2012, time.February, 2, 18, 02, 0, 0, time.UTC)
cd = &CallDescriptor{Direction: utils.OUT, TOR: "0", Tenant: "vdf", Subject: "rif", Destination: "0256", TimeStart: t1, TimeEnd: t2}
cd = &CallDescriptor{Direction: utils.META_OUT, TOR: "0", Tenant: "vdf", Subject: "rif", Destination: "0256", TimeStart: t1, TimeEnd: t2}
cc2, _ := cd.getCost()
if cc2.Cost != 30 {
t.Errorf("expected 30 was %v", cc2.Cost)

View File

@@ -26,7 +26,6 @@ import (
"github.com/cgrates/cgrates/config"
"github.com/cgrates/cgrates/guardian"
"github.com/cgrates/cgrates/utils"
"github.com/cgrates/rpcclient"
)
// Individual session run
@@ -38,7 +37,6 @@ type SessionRun struct {
type Responder struct {
ExitChan chan bool
CdrStats rpcclient.RpcClientConnection
Timeout time.Duration
Timezone string
MaxComputedUsage map[string]time.Duration

View File

@@ -226,7 +226,7 @@ func (spS *SupplierService) costForEvent(ev *utils.CGREvent,
}
for _, rp := range rpIDs { // loop through RatingPlans until we find one without errors
rPrfl := &RatingProfile{
Id: utils.ConcatenatedKey(utils.OUT,
Id: utils.ConcatenatedKey(utils.META_OUT,
ev.Tenant, utils.MetaSuppliers, subj),
RatingPlanActivations: RatingPlanActivations{
&RatingPlanActivation{