cleaned unimplemented methods from db adaptors

This commit is contained in:
Radu Ioan Fericean
2013-08-27 15:07:50 +03:00
parent 411af6ba74
commit 5acbdc6934
4 changed files with 2 additions and 450 deletions

View File

@@ -38,25 +38,6 @@ func (self *SQLStorage) Flush() (err error) {
return
}
func (self *SQLStorage) GetRatingProfile(string) (rp *RatingProfile, err error) {
/*row := self.Db.QueryRow(fmt.Sprintf("SELECT * FROM ratingprofiles WHERE id='%s'", id))
err = row.Scan(&rp, &cc.Direction, &cc.Tenant, &cc.TOR, &cc.Subject, &cc.Destination, &cc.Cost, &cc.ConnectFee, &timespansJson)
err = json.Unmarshal([]byte(timespansJson), cc.Timespans)*/
return
}
func (self *SQLStorage) SetRatingProfile(rp *RatingProfile) (err error) {
return
}
func (self *SQLStorage) GetDestination(string) (d *Destination, err error) {
return
}
func (self *SQLStorage) SetDestination(d *Destination) (err error) {
return
}
// Return a list with all TPids defined in the system, even if incomplete, isolated in some table.
func (self *SQLStorage) GetTPIds() ([]string, error) {
rows, err := self.Db.Query(
@@ -800,24 +781,6 @@ func (self *SQLStorage) GetTPAccountActionIds(tpid string) ([]string, error) {
return ids, nil
}
func (self *SQLStorage) GetUserBalance(string) (ub *UserBalance, err error) { return }
func (self *SQLStorage) SetUserBalance(ub *UserBalance) (err error) { return }
func (self *SQLStorage) GetActions(string) (as Actions, err error) {
return
}
func (self *SQLStorage) SetActions(key string, as Actions) (err error) { return }
func (self *SQLStorage) GetActionTimings(key string) (ats ActionTimings, err error) { return }
func (self *SQLStorage) SetActionTimings(key string, ats ActionTimings) (err error) { return }
func (self *SQLStorage) GetAllActionTimings() (ats map[string]ActionTimings, err error) {
return
}
func (self *SQLStorage) LogCallCost(uuid, source string, cc *CallCost) (err error) {
//ToDo: Add cgrid to logCallCost
if self.Db == nil {