* tta/perl/Texinfo/Document.pm (_remove_section_relations_relations):
remove cycle going through toplevel prev directions.

* tta/perl/Texinfo/Document.pm (remove_document_references):
reorganize code to separate code that remove cycles and code that
remove all the references to elements.
2 files changed