From 46de4c4c30b903af16b71910beb65883929ad6f5 Mon Sep 17 00:00:00 2001 From: mmsqe Date: Mon, 16 Dec 2024 11:48:49 +0800 Subject: [PATCH] cleanup --- store/tracekv/store.go | 3 +-- store/types/store.go | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/store/tracekv/store.go b/store/tracekv/store.go index 435bb8f7ae96..b0960cdb51e8 100644 --- a/store/tracekv/store.go +++ b/store/tracekv/store.go @@ -161,8 +161,7 @@ func (tkv *Store) GetStoreType() types.StoreType { return tkv.parent.GetStoreType() } -// CacheWrap implements the KVStore interface. It panics because a Store -// cannot be branched. +// CacheWrap implements CacheWrapper. func (tkv *Store) CacheWrap() types.CacheWrap { return tkv.parent.CacheWrap() } diff --git a/store/types/store.go b/store/types/store.go index f716a6c0e306..5835e97da279 100644 --- a/store/types/store.go +++ b/store/types/store.go @@ -353,9 +353,6 @@ type CacheWrap interface { // Discard the write set Discard() - - // CacheWrapWithTrace branches a store with tracing enabled. - CacheWrapWithTrace(w io.Writer, tc TraceContext) CacheWrap } type CacheWrapper interface {