From d31623db8e85370260abe54d76dd8b944a37d687 Mon Sep 17 00:00:00 2001 From: Oleg Kovalov Date: Wed, 29 May 2024 13:27:24 +0200 Subject: [PATCH] remove func --- store/store.go | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/store/store.go b/store/store.go index ddffa3d0..861eef19 100644 --- a/store/store.go +++ b/store/store.go @@ -64,21 +64,6 @@ func NewStore[H header.Header[H]](ds datastore.Batching, opts ...Option) (*Store return newStore[H](ds, opts...) } -// NewStoreWithHead initiates a new Store and forcefully sets a given trusted header as head. -func NewStoreWithHead[H header.Header[H]]( - ctx context.Context, - ds datastore.Batching, - head H, - opts ...Option, -) (*Store[H], error) { - store, err := newStore[H](ds, opts...) - if err != nil { - return nil, err - } - - return store, store.Init(ctx, head) -} - func newStore[H header.Header[H]](ds datastore.Batching, opts ...Option) (*Store[H], error) { params := DefaultParameters() for _, opt := range opts {