[#544] layer: Remove no longer needed deleteContainer method

Call `DeleteContainer` on `NeoFS` component directly.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2022-06-24 07:51:35 +03:00 committed by Alex Vanin
parent f596c8be06
commit a8fc313ff5
2 changed files with 1 additions and 5 deletions

View file

@ -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) { func (n *layer) GetContainerEACL(ctx context.Context, idCnr cid.ID) (*eacl.Table, error) {
return n.neoFS.ContainerEACL(ctx, idCnr) 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)
}

View file

@ -659,5 +659,5 @@ func (n *layer) DeleteBucket(ctx context.Context, p *DeleteBucketParams) error {
} }
n.bucketCache.Delete(p.BktInfo.Name) 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)
} }