Skip to content

Conversation

@GarmashAlex
Copy link
Contributor

The ToDot method called t.root.Hash() and ignored the result. Hash() in bintrie nodes (InternalNode/StemNode) is pure and has no side effects or caching, and ToDot does not depend on any prior hashing. Therefore, the call is dead code and unnecessary. Removing it simplifies the function with no behavioral change.

Copy link
Member

@gballet gballet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is an outstanding body of code that is not visible currently in this branch, that makes it a good reason for this hash to be here.

@gballet gballet closed this Oct 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants