From cc885bd39aea4418aa834491e753932033aaa195 Mon Sep 17 00:00:00 2001 From: albertony <12441419+albertony@users.noreply.github.com> Date: Sat, 25 Mar 2023 23:17:54 +0100 Subject: [PATCH] hidrive: remove unused code (fixes issue reported by the unused linter) --- backend/hidrive/helpers.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/backend/hidrive/helpers.go b/backend/hidrive/helpers.go index 7b925e1b3..b7a522257 100644 --- a/backend/hidrive/helpers.go +++ b/backend/hidrive/helpers.go @@ -294,15 +294,6 @@ func (f *Fs) copyOrMove(ctx context.Context, isDirectory bool, operationType Cop return &result, nil } -// copyDirectory moves the directory at the source-path to the destination-path and -// returns the resulting api-object if successful. -// -// The operation will only be successful -// if the parent-directory of the destination-path exists. -func (f *Fs) copyDirectory(ctx context.Context, source string, destination string, onExist OnExistAction) (*api.HiDriveObject, error) { - return f.copyOrMove(ctx, true, CopyOriginalPreserveModTime, source, destination, onExist) -} - // moveDirectory moves the directory at the source-path to the destination-path and // returns the resulting api-object if successful. //