From eac4c4d849d262cf7607880575fe7018d2e539fb Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Wed, 2 Mar 2022 17:33:37 +0300 Subject: [PATCH] [#346] api: Remove unused and no longer needed `layer.Get` method Signed-off-by: Leonard Lyubich --- api/layer/layer.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/api/layer/layer.go b/api/layer/layer.go index df8b9f8ff..127f5bf7f 100644 --- a/api/layer/layer.go +++ b/api/layer/layer.go @@ -25,7 +25,6 @@ import ( "github.com/nspcc-dev/neofs-sdk-go/eacl" "github.com/nspcc-dev/neofs-sdk-go/netmap" "github.com/nspcc-dev/neofs-sdk-go/object" - "github.com/nspcc-dev/neofs-sdk-go/object/address" oid "github.com/nspcc-dev/neofs-sdk-go/object/id" "github.com/nspcc-dev/neofs-sdk-go/owner" "github.com/nspcc-dev/neofs-sdk-go/pool" @@ -510,11 +509,6 @@ func (n *layer) CallOptions(ctx context.Context) []pool.CallOption { return []pool.CallOption{pool.WithKey(&n.anonKey.Key.PrivateKey)} } -// Get NeoFS Object by address (should be used by auth.Center). -func (n *layer) Get(ctx context.Context, addr *address.Address) (*object.Object, error) { - return n.objectGet(ctx, addr) -} - // GetBucketInfo returns bucket info by name. func (n *layer) GetBucketInfo(ctx context.Context, name string) (*data.BucketInfo, error) { name, err := url.QueryUnescape(name)