diff options
author | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-09-10 21:24:36 +0800 |
---|---|---|
committer | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-09-11 03:10:58 +0800 |
commit | b81a6e6ab8954689fa183fd19639cf0344c0de19 (patch) | |
tree | c8333ce3fede145206ce8998858986c8b25f52f0 /core/state/statedb.go | |
parent | 90f1fe0ed2399f90f01c09e61e244121ef7d148a (diff) | |
download | go-tangerine-b81a6e6ab8954689fa183fd19639cf0344c0de19.tar.gz go-tangerine-b81a6e6ab8954689fa183fd19639cf0344c0de19.tar.zst go-tangerine-b81a6e6ab8954689fa183fd19639cf0344c0de19.zip |
core, core/vm, core/state: remove unused functions
Diffstat (limited to 'core/state/statedb.go')
-rw-r--r-- | core/state/statedb.go | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/core/state/statedb.go b/core/state/statedb.go index 577f7162e..b754f0887 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -18,7 +18,6 @@ package state import ( - "bytes" "math/big" "github.com/ethereum/go-ethereum/common" @@ -276,10 +275,6 @@ func (self *StateDB) CreateAccount(addr common.Address) *StateObject { // Setting, copying of the state methods // -func (s *StateDB) Cmp(other *StateDB) bool { - return bytes.Equal(s.trie.Root(), other.trie.Root()) -} - func (self *StateDB) Copy() *StateDB { state := New(common.Hash{}, self.db) state.trie = self.trie @@ -311,22 +306,6 @@ func (s *StateDB) Root() common.Hash { return common.BytesToHash(s.trie.Root()) } -func (s *StateDB) Trie() *trie.SecureTrie { - return s.trie -} - -// Resets the trie and all siblings -func (s *StateDB) Reset() { - s.trie.Reset() - - // Reset all nested states - for _, stateObject := range s.stateObjects { - stateObject.Reset() - } - - s.Empty() -} - // Syncs the trie and all siblings func (s *StateDB) Sync() { // Sync all nested states |