swift: remove unused code (fixes issue reported by the unused linter)
This commit is contained in:
parent
851ce0f4fe
commit
400d1a4468
1 changed files with 0 additions and 18 deletions
|
@ -8,7 +8,6 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"net/url"
|
|
||||||
"path"
|
"path"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
@ -1328,23 +1327,6 @@ func (o *Object) removeSegmentsLargeObject(ctx context.Context, containerSegment
|
||||||
return nil
|
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
|
// 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
|
// We don't use any of Go's standard methods as we need `/` not
|
||||||
|
|
Loading…
Add table
Reference in a new issue