Skip to content

Commit

Permalink
Remove unnecesary peek method
Browse files Browse the repository at this point in the history
  • Loading branch information
dimartiro committed Oct 24, 2024
1 parent 0bb4b61 commit f49f1d8
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions pkg/trie/inmemory/iterator.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,6 @@ func NewInMemoryTrieIterator(opts ...IterOpts) *InMemoryTrieIterator {
return iter
}

func (t *InMemoryTrieIterator) PeekNextKey() []byte {
entry := findNextNode(t.trie.root, []byte(nil), t.cursorAtKey)
if entry != nil {
return codec.NibblesToKeyLE(entry.Key)
}
return nil
}

func (t *InMemoryTrieIterator) NextEntry() *trie.Entry {
found := findNextNode(t.trie.root, []byte(nil), t.cursorAtKey)
if found != nil {
Expand Down

0 comments on commit f49f1d8

Please sign in to comment.