From 6914fe436c608f0624e0cafdc9740437761f38a3 Mon Sep 17 00:00:00 2001 From: Aditya Manthramurthy Date: Mon, 31 Oct 2016 12:18:15 -0700 Subject: [PATCH] Remove unused function. (#3143) --- cmd/object-multipart-common.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/cmd/object-multipart-common.go b/cmd/object-multipart-common.go index 59fef1a28..4beb57c78 100644 --- a/cmd/object-multipart-common.go +++ b/cmd/object-multipart-common.go @@ -67,16 +67,6 @@ func (u *uploadsV1) RemoveUploadID(uploadID string) { } } -// Index - returns the index of matching the upload id. -func (u uploadsV1) Index(uploadID string) int { - for i, u := range u.Uploads { - if u.UploadID == uploadID { - return i - } - } - return -1 -} - // readUploadsJSON - get all the saved uploads JSON. func readUploadsJSON(bucket, object string, disk StorageAPI) (uploadIDs uploadsV1, err error) { uploadJSONPath := path.Join(mpartMetaPrefix, bucket, object, uploadsJSONFile)