removed unused func
This commit is contained in:
parent
2c52f950ca
commit
10f0126394
10
main.go
10
main.go
@ -49,16 +49,6 @@ func get_parents(headings []heading) {
|
||||
}
|
||||
}
|
||||
|
||||
func print_children(heading *heading, headings []heading) {
|
||||
fmt.Printf("pointer of parent: %p\n", heading)
|
||||
|
||||
for index, _ := range headings {
|
||||
if headings[index].parent == heading {
|
||||
fmt.Printf("Header of parent %p: %s\n", heading, headings[index].text)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func print_children_recursive(heading *heading, headings []heading) {
|
||||
for index, _ := range headings {
|
||||
if headings[index].parent == heading {
|
||||
|
Reference in New Issue
Block a user