MCPcopy Create free account
hub / github.com/DoNewsCode/core / removeChild

Method removeChild

dag/vertex.go:79–86  ·  view source on GitHub ↗
(child *vertex)

Source from the content-addressed store, hash-verified

77}
78
79func (v *vertex) removeChild(child *vertex) {
80 for _, c := range v.children {
81 if c.id == child.id {
82 v.children = append(v.children[:c.id], v.children[c.id+1:]...)
83 break
84 }
85 }
86}

Callers 2

AddEdgeMethod · 0.80
AddEdgesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected