fix: cleanup

This commit is contained in:
Tristan Cartledge
2023-12-01 17:47:55 +00:00
parent a4ad09aab3
commit 1a384fd982
9 changed files with 14 additions and 23 deletions

View File

@@ -70,17 +70,6 @@ func CreateContext(l, r *yaml.Node) *ChangeContext {
return ctx
}
func FlattenLowLevelMap[T any](
lowMap map[low.KeyReference[string]]low.ValueReference[T],
) map[string]*low.ValueReference[T] {
flat := make(map[string]*low.ValueReference[T])
for i := range lowMap {
l := lowMap[i]
flat[i.Value] = &l
}
return flat
}
func FlattenLowLevelOrderedMap[T any](
lowMap *orderedmap.Map[low.KeyReference[string], low.ValueReference[T]],
) map[string]*low.ValueReference[T] {