From 9f50b310a01718158202c2b79c97ab74283ce5c8 Mon Sep 17 00:00:00 2001 From: chrislu Date: Sat, 20 Aug 2022 17:51:12 -0700 Subject: [PATCH] remove unused code --- weed/command/filer_copy.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/weed/command/filer_copy.go b/weed/command/filer_copy.go index 042952f7d..aac43c697 100644 --- a/weed/command/filer_copy.go +++ b/weed/command/filer_copy.go @@ -444,7 +444,6 @@ func (worker *FileCopyWorker) uploadFileInChunks(task FileCopyTask, f *os.File, concurrentChunks := make(chan struct{}, *worker.options.concurrenctChunks) var wg sync.WaitGroup var uploadError error - var collection, replication string fmt.Printf("uploading %s in %d chunks ...\n", fileName, chunkCount) for i := int64(0); i < int64(chunkCount) && uploadError == nil; i++ { @@ -485,12 +484,6 @@ func (worker *FileCopyWorker) uploadFileInChunks(task FileCopyTask, f *os.File, } targetUrl := "http://" + assignResult.Location.Url + "/" + assignResult.FileId - if collection == "" { - collection = assignResult.Collection - } - if replication == "" { - replication = assignResult.Replication - } uploadOption := &operation.UploadOption{ UploadUrl: targetUrl,