diff --git a/cmd/api-errors.go b/cmd/api-errors.go index b3e13ad6b..3dfd90f26 100644 --- a/cmd/api-errors.go +++ b/cmd/api-errors.go @@ -114,7 +114,6 @@ const ( ErrInvalidQueryParams ErrBucketAlreadyOwnedByYou ErrInvalidDuration - ErrNotSupported ErrBucketAlreadyExists ErrMetadataTooLarge ErrUnsupportedMetadata @@ -748,8 +747,6 @@ func toAPIErrorCode(err error) (apiErr APIErrorCode) { apiErr = ErrEntityTooLarge case ObjectTooSmall: apiErr = ErrEntityTooSmall - case NotSupported: - apiErr = ErrNotSupported case NotImplemented: apiErr = ErrNotImplemented case PolicyNotFound: diff --git a/cmd/api-errors_test.go b/cmd/api-errors_test.go index b53843b7e..7a4b6fde0 100644 --- a/cmd/api-errors_test.go +++ b/cmd/api-errors_test.go @@ -103,10 +103,6 @@ func TestAPIErrCode(t *testing.T) { StorageFull{}, ErrStorageFull, }, - { - NotSupported{}, - ErrNotSupported, - }, { NotImplemented{}, ErrNotImplemented, diff --git a/cmd/gateway-gcs.go b/cmd/gateway-gcs.go index 6c986e3d4..0238d1652 100644 --- a/cmd/gateway-gcs.go +++ b/cmd/gateway-gcs.go @@ -825,11 +825,6 @@ func (l *gcsGateway) ListMultipartUploads(bucket string, prefix string, keyMarke }, nil } -// CopyObjectPart - copy part of object to other bucket and object -func (l *gcsGateway) CopyObjectPart(srcBucket string, srcObject string, destBucket string, destObject string, uploadID string, partID int, startOffset int64, length int64) (info PartInfo, err error) { - return PartInfo{}, traceError(NotSupported{}) -} - // Checks if minio.sys.tmp/multipart/v1//gcs.json exists, returns // an object layer compatible error upon any error. func (l *gcsGateway) checkUploadIDExists(bucket string, key string, uploadID string) error { diff --git a/cmd/object-api-errors.go b/cmd/object-api-errors.go index 22625be51..c07ff434f 100644 --- a/cmd/object-api-errors.go +++ b/cmd/object-api-errors.go @@ -366,13 +366,6 @@ func (e NotImplemented) Error() string { return "Not Implemented" } -// NotSupported If a feature is not supported -type NotSupported struct{} - -func (e NotSupported) Error() string { - return "Not Supported" -} - // PolicyNesting - policy nesting conflict. type PolicyNesting struct{}