From fdc8a267de346462446d251bb845fd241a4d1d27 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sat, 22 Sep 2018 22:11:13 -0700 Subject: [PATCH] remove unused function --- weed/s3api/s3api_object_handlers.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/weed/s3api/s3api_object_handlers.go b/weed/s3api/s3api_object_handlers.go index f459e17cf..93816c7ee 100644 --- a/weed/s3api/s3api_object_handlers.go +++ b/weed/s3api/s3api_object_handlers.go @@ -220,11 +220,3 @@ func getObject(vars map[string]string) string { } return object } - -func getEtag(r *http.Request) (etag string) { - etag = r.Header.Get("ETag") - if strings.HasPrefix(etag, "\"") && strings.HasSuffix(etag, "\"") { - etag = etag[1 : len(etag)-1] - } - return -}