MCPcopy Create free account
hub / github.com/XmirrorSecurity/OpenSCA-cli / RemoveDevelop

Method RemoveDevelop

opensca/model/dep.go:200–214  ·  view source on GitHub ↗

RemoveDevelop 移除develop组件

()

Source from the content-addressed store, hash-verified

198
199// RemoveDevelop 移除develop组件
200func (dep *DepGraph) RemoveDevelop() {
201 dep.ForEachNode(func(p, n *DepGraph) bool {
202 if n.Develop {
203 for _, c := range n.Children {
204 n.RemoveChild(c)
205 }
206 for _, p := range n.Parents {
207 p.RemoveChild(n)
208 }
209 n = nil
210 return false
211 }
212 return true
213 })
214}
215
216// Tree 依赖树
217// path: true=>记录全部路径 false=>记录全部节点

Callers

nothing calls this directly

Calls 2

ForEachNodeMethod · 0.95
RemoveChildMethod · 0.80

Tested by

no test coverage detected