From 37ca688dc079bbaee919cc82a74c288219a4a009 Mon Sep 17 00:00:00 2001 From: william wei <1342247033@qq.com> Date: Tue, 16 May 2017 17:47:13 +0800 Subject: [PATCH] Remove unused function Signed-off-by: william wei <1342247033@qq.com> --- registry/storage/driver/s3-goamz/s3.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/registry/storage/driver/s3-goamz/s3.go b/registry/storage/driver/s3-goamz/s3.go index e64ee879e..b16ca49a7 100644 --- a/registry/storage/driver/s3-goamz/s3.go +++ b/registry/storage/driver/s3-goamz/s3.go @@ -555,11 +555,6 @@ func parseError(path string, err error) error { return err } -func hasCode(err error, code string) bool { - s3err, ok := err.(*aws.Error) - return ok && s3err.Code == code -} - func (d *driver) getOptions() s3.Options { return s3.Options{ SSE: d.Encrypt,