mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Removed duplicate method
This commit is contained in:
committed by
Dan Christian Bogos
parent
c0b4afb8a4
commit
db0f20be57
10
utils/map.go
10
utils/map.go
@@ -182,16 +182,6 @@ func (sm StringMap) HasKey(key string) (has bool) {
|
||||
return
|
||||
}
|
||||
|
||||
func (sm StringMap) GetSlice() (result []string) {
|
||||
result = make([]string, len(sm))
|
||||
i := 0
|
||||
for k := range sm {
|
||||
result[i] = k
|
||||
i += 1
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// Used to merge multiple maps (eg: output of struct having ExtraFields)
|
||||
func MergeMapsStringIface(mps ...map[string]interface{}) (outMp map[string]interface{}) {
|
||||
outMp = make(map[string]interface{})
|
||||
|
||||
Reference in New Issue
Block a user