diff --git a/main.go b/main.go index 0a6f0be..1a0fa05 100644 --- a/main.go +++ b/main.go @@ -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) }