From e578f61d89b08aa997ae6d10db24b2349d0753a8 Mon Sep 17 00:00:00 2001 From: Gary Rong Date: Tue, 2 Sep 2025 11:57:50 +0800 Subject: [PATCH] trie: remove unused func --- trie/trie.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/trie/trie.go b/trie/trie.go index cbe8f186e0..1ef2c2f1a6 100644 --- a/trie/trie.go +++ b/trie/trie.go @@ -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++