Remove dead unused errs and constants. (#4627)

This commit is contained in:
Harshavardhana 2017-07-07 14:31:42 -07:00 committed by Dee Koder
parent c83055500d
commit f5ce685aa1
4 changed files with 3 additions and 19 deletions

View File

@ -24,7 +24,4 @@ var (
// Project ID not found // Project ID not found
errGCSProjectIDNotFound = errors.New("unknown project id") errGCSProjectIDNotFound = errors.New("unknown project id")
// Multipart identifier is not in the correct form.
errGCSNotValidMultipartIdentifier = errors.New("Not a valid multipart identifier")
) )

View File

@ -39,10 +39,9 @@ import (
// AWS Signature Version '4' constants. // AWS Signature Version '4' constants.
const ( const (
signV4Algorithm = "AWS4-HMAC-SHA256" signV4Algorithm = "AWS4-HMAC-SHA256"
iso8601Format = "20060102T150405Z" iso8601Format = "20060102T150405Z"
yyyymmdd = "20060102" yyyymmdd = "20060102"
presignedHostHeader = "host"
) )
// getCanonicalHeaders generate a list of request headers with their values // getCanonicalHeaders generate a list of request headers with their values

View File

@ -55,9 +55,6 @@ var errFileNotFound = errors.New("file not found")
// errFileNameTooLong - given file name is too long than supported length. // errFileNameTooLong - given file name is too long than supported length.
var errFileNameTooLong = errors.New("file name too long") var errFileNameTooLong = errors.New("file name too long")
// errFileComponentInvalid - given file name has invalid components.
var errFileComponentInvalid = errors.New("file name has invalid components")
// errVolumeExists - cannot create same volume again. // errVolumeExists - cannot create same volume again.
var errVolumeExists = errors.New("volume already exists") var errVolumeExists = errors.New("volume already exists")

View File

@ -18,15 +18,6 @@ package cmd
import "errors" import "errors"
// errXLMaxDisks - returned for reached maximum of disks.
var errXLMaxDisks = errors.New("Number of disks are higher than supported maximum count '16'")
// errXLMinDisks - returned for minimum number of disks.
var errXLMinDisks = errors.New("Minimum '4' disks are required to enable erasure code")
// errXLNumDisks - returned for odd number of disks.
var errXLNumDisks = errors.New("Total number of disks should be multiples of '2'")
// errXLReadQuorum - did not meet read quorum. // errXLReadQuorum - did not meet read quorum.
var errXLReadQuorum = errors.New("Read failed. Insufficient number of disks online") var errXLReadQuorum = errors.New("Read failed. Insufficient number of disks online")