Skip to content

refactor: remove unused code and redundant check in NonceManager#58

Merged
re1ro merged 2 commits intofeat/nonce-treefrom
claude/pr55-address-feedback-01Mu5xjLme7mv5nn2QUpN6XQ
Nov 22, 2025
Merged

refactor: remove unused code and redundant check in NonceManager#58
re1ro merged 2 commits intofeat/nonce-treefrom
claude/pr55-address-feedback-01Mu5xjLme7mv5nn2QUpN6XQ

Conversation

@re1ro
Copy link
Collaborator

@re1ro re1ro commented Nov 21, 2025

Address PR feedback:

  • Remove unused hashNonceNode internal function
  • Remove redundant emptiness check (handled by hashNoncesToInvalidate)
  • Remove unused _sortBytes32Array helper function

Changes:

  • Removed hashNonceNode function (only used tests via _hashNonceNode)
  • Removed redundant empty array check at line 164-166
  • Removed orphaned _sortBytes32Array function after hashNonceNode removal
  • Simplified code by trusting hashNoncesToInvalidate to handle edge cases

Address PR feedback:
- Remove unused hashNonceNode internal function
- Remove redundant emptiness check (handled by hashNoncesToInvalidate)
- Remove unused _sortBytes32Array helper function

Changes:
- Removed hashNonceNode function (only used tests via _hashNonceNode)
- Removed redundant empty array check at line 164-166
- Removed orphaned _sortBytes32Array function after hashNonceNode removal
- Simplified code by trusting hashNoncesToInvalidate to handle edge cases
@re1ro re1ro requested a review from fish-sammy November 21, 2025 22:32
@re1ro re1ro self-assigned this Nov 21, 2025
@re1ro re1ro merged commit d9ebe10 into feat/nonce-tree Nov 22, 2025
2 checks passed
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