From a03b25cc45deaf1063516d8706eb502166846adb Mon Sep 17 00:00:00 2001 From: Radu Ioan Fericean Date: Tue, 1 Apr 2014 20:49:34 +0300 Subject: [PATCH] cleaned unused fields --- engine/account.go | 7 ++----- engine/balances.go | 13 ++++++------- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/engine/account.go b/engine/account.go index 8a433ef30..705e21ebe 100644 --- a/engine/account.go +++ b/engine/account.go @@ -62,11 +62,8 @@ type Account struct { BalanceMap map[string]BalanceChain UnitCounters []*UnitsCounter ActionTriggers ActionTriggerPriotityList - Groups GroupLinks // user info about groups - // group information - UserIds []string // group info about users - AllowNegative bool - Disabled bool + AllowNegative bool + Disabled bool } // Returns user's available minutes for the specified destination diff --git a/engine/balances.go b/engine/balances.go index 78bbf9e26..59cdfe84b 100644 --- a/engine/balances.go +++ b/engine/balances.go @@ -32,13 +32,12 @@ type Balance struct { Value float64 ExpirationDate time.Time Weight float64 - //GroupIds []string - DestinationId string - RateSubject string - SharedGroup string - precision int - account *Account // used to store ub reference for shared balances - dirty bool + DestinationId string + RateSubject string + SharedGroup string + precision int + account *Account // used to store ub reference for shared balances + dirty bool } func (b *Balance) Equal(o *Balance) bool {