Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

swift: remove unused code (fixes issue reported by the unused linter)

albertony400d1a446802
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