Remove deadcode related to multipart cleanup for fs (#5716)

The cleanup code is no longer needed as we moved to lockfree 
multipart backend for fs
This commit is contained in:
poornas 2018-03-28 19:56:52 -07:00 committed by Nitish Tiwari
parent 5a7ab7b06e
commit af024a9c69

View File

@ -345,12 +345,6 @@ func (fs *FSObjects) DeleteBucket(ctx context.Context, bucket string) error {
return toObjectErr(err, bucket)
}
// Cleanup all the previously incomplete multiparts.
minioMetaMultipartBucketDir := pathJoin(fs.fsPath, minioMetaMultipartBucket, bucket)
if err = fsRemoveAll(minioMetaMultipartBucketDir); err != nil {
return toObjectErr(err, bucket)
}
// Cleanup all the bucket metadata.
minioMetadataBucketDir := pathJoin(fs.fsPath, minioMetaBucket, bucketMetaPrefix, bucket)
if err = fsRemoveAll(minioMetadataBucketDir); err != nil {