aboutsummaryrefslogtreecommitdiffstats
path: root/trie_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'trie_test.go')
-rw-r--r--trie_test.go18
1 files changed, 0 insertions, 18 deletions
diff --git a/trie_test.go b/trie_test.go
index dac2333c9..6dbe040ee 100644
--- a/trie_test.go
+++ b/trie_test.go
@@ -5,24 +5,6 @@ import (
"encoding/hex"
)
-type MemDatabase struct {
- db map[string][]byte
-}
-
-func NewMemDatabase() (*MemDatabase, error) {
- db := &MemDatabase{db: make(map[string][]byte)}
-
- return db, nil
-}
-
-func (db *MemDatabase) Put(key []byte, value []byte) {
- db.db[string(key)] = value
-}
-
-func (db *MemDatabase) Get(key []byte) ([]byte, error) {
- return db.db[string(key)], nil
-}
-
func TestTriePut(t *testing.T) {
db, err := NewMemDatabase()
trie := NewTrie(db, "")