forked from TrueCloudLab/rclone
backend/premiumizeme: prune unused functions
This commit is contained in:
parent
1d73f071f6
commit
ac60b36e77
1 changed files with 0 additions and 21 deletions
|
@ -315,14 +315,6 @@ func NewFs(name, root string, m configmap.Mapper) (fs.Fs, error) {
|
||||||
return f, nil
|
return f, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// rootSlash returns root with a slash on if it is empty, otherwise empty string
|
|
||||||
func (f *Fs) rootSlash() string {
|
|
||||||
if f.root == "" {
|
|
||||||
return f.root
|
|
||||||
}
|
|
||||||
return f.root + "/"
|
|
||||||
}
|
|
||||||
|
|
||||||
// Return an Object from a path
|
// Return an Object from a path
|
||||||
//
|
//
|
||||||
// If it can't be found it returns the error fs.ErrorObjectNotFound.
|
// If it can't be found it returns the error fs.ErrorObjectNotFound.
|
||||||
|
@ -898,11 +890,6 @@ func (o *Object) Remote() string {
|
||||||
return o.remote
|
return o.remote
|
||||||
}
|
}
|
||||||
|
|
||||||
// srvPath returns a path for use in server
|
|
||||||
func (o *Object) srvPath() string {
|
|
||||||
return o.fs.opt.Enc.FromStandardPath(o.fs.rootSlash() + o.remote)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Hash returns the SHA-1 of an object returning a lowercase hex string
|
// Hash returns the SHA-1 of an object returning a lowercase hex string
|
||||||
func (o *Object) Hash(ctx context.Context, t hash.Type) (string, error) {
|
func (o *Object) Hash(ctx context.Context, t hash.Type) (string, error) {
|
||||||
return "", hash.ErrUnsupported
|
return "", hash.ErrUnsupported
|
||||||
|
@ -993,14 +980,6 @@ func (o *Object) Open(ctx context.Context, options ...fs.OpenOption) (in io.Read
|
||||||
return resp.Body, err
|
return resp.Body, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// metaHash returns a rough hash of metadata to detect if object has been updated
|
|
||||||
func (o *Object) metaHash() string {
|
|
||||||
if !o.hasMetaData {
|
|
||||||
return ""
|
|
||||||
}
|
|
||||||
return fmt.Sprintf("remote=%q, size=%d, modTime=%v, id=%q, mimeType=%q", o.remote, o.size, o.modTime, o.id, o.mimeType)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update the object with the contents of the io.Reader, modTime and size
|
// Update the object with the contents of the io.Reader, modTime and size
|
||||||
//
|
//
|
||||||
// If existing is set then it updates the object rather than creating a new one
|
// If existing is set then it updates the object rather than creating a new one
|
||||||
|
|
Loading…
Reference in a new issue