trie: remove unused func

This commit is contained in:
Gary Rong 2025-09-02 11:57:50 +08:00 committed by Felix Lange
parent 8b1071fc34
commit e578f61d89

View file

@ -382,12 +382,6 @@ func (t *Trie) Update(key, value []byte) error {
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 {
t.unhashed++
t.uncommitted++