trie: remove unused code (#20366)

This commit is contained in:
Felix Lange
2019-11-22 16:24:48 +01:00
committed by Péter Szilágyi
parent 58f2ce8671
commit 0abcf03fde
2 changed files with 7 additions and 63 deletions

View File

@ -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