mongo map key cleanup no longer needed

This commit is contained in:
Radu Ioan Fericean
2015-12-21 12:43:45 +02:00
parent dc4f0be05c
commit 8e8463a99f
2 changed files with 2 additions and 1 deletions

View File

@@ -1158,7 +1158,6 @@ func (ms *MongoStorage) GetAllActionPlans() (ats map[string]*ActionPlan, err err
ats = make(map[string]*ActionPlan, len(apls))
for key, value := range apls {
apl := value.(*ActionPlan)
apl.AccountIDs = utils.YesDots(apl.AccountIDs)
ats[key] = apl
}

View File

@@ -144,6 +144,7 @@ func (sm StringMap) GetOne() string {
return ""
}
/*
func NoDots(m map[string]struct{}) map[string]struct{} {
return MapKeysReplace(m, ".", "")
}
@@ -160,3 +161,4 @@ func MapKeysReplace(m map[string]struct{}, old, new string) map[string]struct{}
}
return m
}
*/