From 933ef2bc71d4d410050df3931ea1a401705950ed Mon Sep 17 00:00:00 2001 From: Denis Kirillov Date: Wed, 25 May 2022 19:04:07 +0300 Subject: [PATCH] [#441] Remove unused Signed-off-by: Denis Kirillov --- api/layer/object.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/api/layer/object.go b/api/layer/object.go index 546b9f117..e397a08f4 100644 --- a/api/layer/object.go +++ b/api/layer/object.go @@ -450,14 +450,6 @@ func (n *layer) objectDelete(ctx context.Context, idCnr cid.ID, idObj oid.ID) er return n.transformNeofsError(ctx, n.neoFS.DeleteObject(ctx, prm)) } -// objectPut prepare auth parameters and invoke neofs.CreateObject. -func (n *layer) objectPut(ctx context.Context, prm neofs.PrmObjectCreate) (*oid.ID, error) { - n.prepareAuthParameters(ctx, &prm.PrmAuth) - - id, err := n.neoFS.CreateObject(ctx, prm) - return id, n.transformNeofsError(ctx, err) -} - // objectPutAndHash prepare auth parameters and invoke neofs.CreateObject. // Returns object ID and payload sha256 hash. func (n *layer) objectPutAndHash(ctx context.Context, prm neofs.PrmObjectCreate) (*oid.ID, []byte, error) {