mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 05:06:43 +00:00
trie: remove unused func
This commit is contained in:
parent
8b1071fc34
commit
e578f61d89
1 changed files with 0 additions and 6 deletions
|
|
@ -382,12 +382,6 @@ func (t *Trie) Update(key, value []byte) error {
|
||||||
return t.update(key, value)
|
return t.update(key, value)
|
||||||
}
|
}
|
||||||
|
|
||||||
// UpdateSafe is identical to Update, except that this method will copy the
|
|
||||||
// value slice. The caller is free to modify the value bytes after this method returns.
|
|
||||||
func (t *Trie) UpdateSafe(key, value []byte) error {
|
|
||||||
return t.Update(key, common.CopyBytes(value))
|
|
||||||
}
|
|
||||||
|
|
||||||
func (t *Trie) update(key, value []byte) error {
|
func (t *Trie) update(key, value []byte) error {
|
||||||
t.unhashed++
|
t.unhashed++
|
||||||
t.uncommitted++
|
t.uncommitted++
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue