From 400d1a446802eab9b301ca43f6c99a95fea252fa Mon Sep 17 00:00:00 2001 From: albertony <12441419+albertony@users.noreply.github.com> Date: Sat, 25 Mar 2023 23:22:37 +0100 Subject: [PATCH] swift: remove unused code (fixes issue reported by the unused linter) --- backend/swift/swift.go | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/backend/swift/swift.go b/backend/swift/swift.go index 9ee5c7612..7806dd505 100644 --- a/backend/swift/swift.go +++ b/backend/swift/swift.go @@ -8,7 +8,6 @@ import ( "errors" "fmt" "io" - "net/url" "path" "strconv" "strings" @@ -1328,23 +1327,6 @@ func (o *Object) removeSegmentsLargeObject(ctx context.Context, containerSegment return nil } -func (o *Object) getSegmentsDlo(ctx context.Context) (segmentsContainer string, prefix string, err error) { - if err = o.readMetaData(ctx); err != nil { - return - } - dirManifest := o.headers["X-Object-Manifest"] - dirManifest, err = url.PathUnescape(dirManifest) - if err != nil { - return - } - delimiter := strings.Index(dirManifest, "/") - if len(dirManifest) == 0 || delimiter < 0 { - err = errors.New("missing or wrong structure of manifest of Dynamic large object") - return - } - return dirManifest[:delimiter], dirManifest[delimiter+1:], nil -} - // urlEncode encodes a string so that it is a valid URL // // We don't use any of Go's standard methods as we need `/` not