diff --git a/backend/azureblob/azureblob.go b/backend/azureblob/azureblob.go index 971bdc1d1..a852bac56 100644 --- a/backend/azureblob/azureblob.go +++ b/backend/azureblob/azureblob.go @@ -1293,19 +1293,6 @@ func (f *Fs) Copy(ctx context.Context, src fs.Object, remote string) (fs.Object, 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 diff --git a/backend/drive/drive.go b/backend/drive/drive.go index 918faddf9..4e17f09df 100644 --- a/backend/drive/drive.go +++ b/backend/drive/drive.go @@ -3525,12 +3525,6 @@ func (o *baseObject) Size() int64 { 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 func (f *Fs) getRemoteInfoWithExport(ctx context.Context, remote string) ( info *drive.File, extension, exportName, exportMimeType string, isDocument bool, err error) { diff --git a/backend/onedrive/onedrive.go b/backend/onedrive/onedrive.go index f8ab22a27..4e899addc 100644 --- a/backend/onedrive/onedrive.go +++ b/backend/onedrive/onedrive.go @@ -1760,16 +1760,6 @@ func (o *Object) rootPath() string { 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 func (o *Object) Hash(ctx context.Context, t hash.Type) (string, error) { if o.fs.driveType == driveTypePersonal { diff --git a/backend/uptobox/uptobox.go b/backend/uptobox/uptobox.go index e232ac83c..88faefce4 100644 --- a/backend/uptobox/uptobox.go +++ b/backend/uptobox/uptobox.go @@ -918,11 +918,6 @@ func (o *Object) Remote() string { 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 // // It attempts to read the objects mtime and if that isn't present the