From a8fc313ff531b87f065221a043cdb2a93f198ee6 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Fri, 24 Jun 2022 07:51:35 +0300 Subject: [PATCH] [#544] layer: Remove no longer needed `deleteContainer` method Call `DeleteContainer` on `NeoFS` component directly. Signed-off-by: Leonard Lyubich --- api/layer/container.go | 4 ---- api/layer/layer.go | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/api/layer/container.go b/api/layer/container.go index eb288ee15..af806c948 100644 --- a/api/layer/container.go +++ b/api/layer/container.go @@ -179,7 +179,3 @@ func (n *layer) setContainerEACLTable(ctx context.Context, idCnr cid.ID, table * func (n *layer) GetContainerEACL(ctx context.Context, idCnr cid.ID) (*eacl.Table, error) { return n.neoFS.ContainerEACL(ctx, idCnr) } - -func (n *layer) deleteContainer(ctx context.Context, idCnr cid.ID, sessionToken *session.Container) error { - return n.neoFS.DeleteContainer(ctx, idCnr, sessionToken) -} diff --git a/api/layer/layer.go b/api/layer/layer.go index e855b9b16..db94e8cf7 100644 --- a/api/layer/layer.go +++ b/api/layer/layer.go @@ -659,5 +659,5 @@ func (n *layer) DeleteBucket(ctx context.Context, p *DeleteBucketParams) error { } n.bucketCache.Delete(p.BktInfo.Name) - return n.deleteContainer(ctx, p.BktInfo.CID, p.SessionToken) + return n.neoFS.DeleteContainer(ctx, p.BktInfo.CID, p.SessionToken) }