trie: remove unused code (#20366)
This commit is contained in:
committed by
Péter Szilágyi
parent
58f2ce8671
commit
0abcf03fde
@ -31,7 +31,6 @@ import (
|
||||
"github.com/davecgh/go-spew/spew"
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
"github.com/ethereum/go-ethereum/crypto"
|
||||
"github.com/ethereum/go-ethereum/ethdb"
|
||||
"github.com/ethereum/go-ethereum/ethdb/leveldb"
|
||||
"github.com/ethereum/go-ethereum/ethdb/memorydb"
|
||||
"github.com/ethereum/go-ethereum/rlp"
|
||||
@ -317,16 +316,6 @@ func TestLargeValue(t *testing.T) {
|
||||
trie.Hash()
|
||||
}
|
||||
|
||||
type countingDB struct {
|
||||
ethdb.KeyValueStore
|
||||
gets map[string]int
|
||||
}
|
||||
|
||||
func (db *countingDB) Get(key []byte) ([]byte, error) {
|
||||
db.gets[string(key)]++
|
||||
return db.KeyValueStore.Get(key)
|
||||
}
|
||||
|
||||
// randTest performs random trie operations.
|
||||
// Instances of this test are created by Generate.
|
||||
type randTest []randTestStep
|
||||
|
Reference in New Issue
Block a user