removed func print_children_recursive

This commit is contained in:
bjt-user 2024-05-06 01:25:55 +02:00
parent 10f0126394
commit 170ed10a17

13
main.go
View File

@ -49,15 +49,6 @@ func get_parents(headings []heading) {
}
}
func print_children_recursive(heading *heading, headings []heading) {
for index, _ := range headings {
if headings[index].parent == heading {
fmt.Printf("Child of parent %p: %s (%p)\n", heading, headings[index].text, &headings[index])
print_children_recursive(&headings[index], headings)
}
}
}
func parse_file(file_name string) []heading {
file_content_raw, err := os.ReadFile(file_name)
@ -87,10 +78,6 @@ func main() {
get_parents(headings)
print_children_recursive(nil, headings)
fmt.Printf("%v\n", headings)
fmt.Println(path.Base(file_name))
tree(-1, "", headings)
}