forked from TrueCloudLab/rclone
staticcheck: unused func
This commit is contained in:
parent
3435bf7f34
commit
7822df565e
4 changed files with 0 additions and 34 deletions
|
@ -1293,19 +1293,6 @@ func (f *Fs) Copy(ctx context.Context, src fs.Object, remote string) (fs.Object,
|
||||||
return f.NewObject(ctx, remote)
|
return f.NewObject(ctx, remote)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *Fs) getMemoryPool(size int64) *pool.Pool {
|
|
||||||
if size == int64(f.opt.ChunkSize) {
|
|
||||||
return f.pool
|
|
||||||
}
|
|
||||||
|
|
||||||
return pool.New(
|
|
||||||
time.Duration(f.opt.MemoryPoolFlushTime),
|
|
||||||
int(size),
|
|
||||||
f.ci.Transfers,
|
|
||||||
f.opt.MemoryPoolUseMmap,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
// ------------------------------------------------------------
|
// ------------------------------------------------------------
|
||||||
|
|
||||||
// Fs returns the parent Fs
|
// Fs returns the parent Fs
|
||||||
|
|
|
@ -3525,12 +3525,6 @@ func (o *baseObject) Size() int64 {
|
||||||
return o.bytes
|
return o.bytes
|
||||||
}
|
}
|
||||||
|
|
||||||
// getRemoteInfo returns a drive.File for the remote
|
|
||||||
func (f *Fs) getRemoteInfo(ctx context.Context, remote string) (info *drive.File, err error) {
|
|
||||||
info, _, _, _, _, err = f.getRemoteInfoWithExport(ctx, remote)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// getRemoteInfoWithExport returns a drive.File and the export settings for the remote
|
// getRemoteInfoWithExport returns a drive.File and the export settings for the remote
|
||||||
func (f *Fs) getRemoteInfoWithExport(ctx context.Context, remote string) (
|
func (f *Fs) getRemoteInfoWithExport(ctx context.Context, remote string) (
|
||||||
info *drive.File, extension, exportName, exportMimeType string, isDocument bool, err error) {
|
info *drive.File, extension, exportName, exportMimeType string, isDocument bool, err error) {
|
||||||
|
|
|
@ -1760,16 +1760,6 @@ func (o *Object) rootPath() string {
|
||||||
return o.fs.rootPath(o.remote)
|
return o.fs.rootPath(o.remote)
|
||||||
}
|
}
|
||||||
|
|
||||||
// srvPath returns a path for use in server given a remote
|
|
||||||
func (f *Fs) srvPath(remote string) string {
|
|
||||||
return f.opt.Enc.FromStandardPath(f.rootSlash() + remote)
|
|
||||||
}
|
|
||||||
|
|
||||||
// srvPath returns a path for use in server
|
|
||||||
func (o *Object) srvPath() string {
|
|
||||||
return o.fs.srvPath(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) {
|
||||||
if o.fs.driveType == driveTypePersonal {
|
if o.fs.driveType == driveTypePersonal {
|
||||||
|
|
|
@ -918,11 +918,6 @@ func (o *Object) Remote() string {
|
||||||
return o.remote
|
return o.remote
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns the full remote path for the object
|
|
||||||
func (o *Object) filePath() string {
|
|
||||||
return o.fs.dirPath(o.remote)
|
|
||||||
}
|
|
||||||
|
|
||||||
// ModTime returns the modification time of the object
|
// ModTime returns the modification time of the object
|
||||||
//
|
//
|
||||||
// It attempts to read the objects mtime and if that isn't present the
|
// It attempts to read the objects mtime and if that isn't present the
|
||||||
|
|
Loading…
Reference in a new issue