Remove dead unused errs and constants. (#4627)

master
Harshavardhana 7 years ago committed by Dee Koder
parent c83055500d
commit f5ce685aa1
  1. 3
      cmd/gateway-gcs-errors.go
  2. 7
      cmd/signature-v4.go
  3. 3
      cmd/storage-errors.go
  4. 9
      cmd/xl-v1-errors.go

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

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

@ -55,9 +55,6 @@ var errFileNotFound = errors.New("file not found")
// errFileNameTooLong - given file name is too long than supported length.
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.
var errVolumeExists = errors.New("volume already exists")

@ -18,15 +18,6 @@ package cmd
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.
var errXLReadQuorum = errors.New("Read failed. Insufficient number of disks online")

Loading…
Cancel
Save