From f05a856ea7597bd9ea7891e5ae9d326789e116aa Mon Sep 17 00:00:00 2001 From: Fred Carle Date: Fri, 16 Dec 2022 01:13:38 -0500 Subject: [PATCH] remove deadcode --- datastore/txn.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/datastore/txn.go b/datastore/txn.go index 7ddbd95d8b..3a48d730c3 100644 --- a/datastore/txn.go +++ b/datastore/txn.go @@ -117,17 +117,3 @@ func (txn *txn) runSuccessFns(ctx context.Context) { fn() } } - -// Shim to make ds.Txn support ds.Datastore -type ShimTxnStore struct { - ds.Txn -} - -func (ts ShimTxnStore) Sync(ctx context.Context, prefix ds.Key) error { - return ts.Txn.Commit(ctx) -} - -func (ts ShimTxnStore) Close() error { - ts.Discard(context.TODO()) - return nil -}