Skip to content

Commit 94a0320

Browse files
committed
trie: rebase
1 parent d273d81 commit 94a0320

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

trie/tracer.go

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ package trie
1818

1919
import (
2020
"maps"
21-
"slices"
2221
"sync"
2322
)
2423

@@ -147,18 +146,10 @@ func (t *prevalueTracer) hasList(list [][]byte) []bool {
147146
}
148147

149148
// values returns a list of values of the cached trie nodes.
150-
func (t *prevalueTracer) values() [][]byte {
149+
func (t *prevalueTracer) values() map[string][]byte {
151150
t.lock.RLock()
152151
defer t.lock.RUnlock()
153152

154-
return slices.Collect(maps.Values(t.data))
155-
}
156-
157-
func (t *prevalueTracer) keys() []string {
158-
return slices.Collect(maps.Keys(t.data))
159-
}
160-
161-
func (t *prevalueTracer) getMap() map[string][]byte {
162153
return maps.Clone(t.data)
163154
}
164155

0 commit comments

Comments
 (0)