mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Updated orderednavigablemap
This commit is contained in:
committed by
Dan Christian Bogos
parent
a541e45313
commit
69fb71d2cf
@@ -67,6 +67,11 @@ func (onm *OrderedNavigableMap) Empty() bool {
|
||||
func (onm *OrderedNavigableMap) removeRef(path string) {
|
||||
for idxPath, slcIdx := range onm.orderRef { //remove the references from order
|
||||
if strings.HasPrefix(idxPath, path) {
|
||||
if lp := len(path); len(idxPath) > lp &&
|
||||
idxPath[lp] != NestingSep[0] &&
|
||||
idxPath[lp] != IdxStart[0] {
|
||||
continue
|
||||
}
|
||||
for _, el := range slcIdx {
|
||||
onm.orderIdx.Remove(el)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user