Remove dupe code
This commit is contained in:
@@ -371,10 +371,3 @@ func (tn *TreeNode) GetPath() []string {
|
|||||||
}
|
}
|
||||||
return append(path, tn.value)
|
return append(path, tn.value)
|
||||||
}
|
}
|
||||||
func (tn *TreeNode) GetLabelPath() []string {
|
|
||||||
var path []string
|
|
||||||
if tn.parent != nil {
|
|
||||||
path = tn.parent.GetLabelPath()
|
|
||||||
}
|
|
||||||
return append(path, tn.label)
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user