aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-02-26 03:23:15 -0800
committerchrislu <chris.lu@gmail.com>2022-02-26 03:23:15 -0800
commit7b1a713d2a6913f7f2ecb2211f50afd7468ef224 (patch)
tree7886bec159514044fb2b3b05c6972132ae5bbae9
parent3a58b7bac63349b938c76a6c07ca5275d92bb0bd (diff)
downloadseaweedfs-7b1a713d2a6913f7f2ecb2211f50afd7468ef224.tar.xz
seaweedfs-7b1a713d2a6913f7f2ecb2211f50afd7468ef224.zip
remove dead code
-rw-r--r--weed/filer/filechunk_manifest.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/weed/filer/filechunk_manifest.go b/weed/filer/filechunk_manifest.go
index 372901b7d..f2f1c7f16 100644
--- a/weed/filer/filechunk_manifest.go
+++ b/weed/filer/filechunk_manifest.go
@@ -104,15 +104,6 @@ func fetchChunk(data []byte, lookupFileIdFn wdclient.LookupFileIdFunctionType, f
return retriedFetchChunkData(data, urlStrings, cipherKey, isGzipped, true, 0)
}
-func fetchChunkRange(data []byte, lookupFileIdFn wdclient.LookupFileIdFunctionType, fileId string, cipherKey []byte, isGzipped bool, offset int64) (int, error) {
- urlStrings, err := lookupFileIdFn(fileId)
- if err != nil {
- glog.Errorf("operation LookupFileId %s failed, err: %v", fileId, err)
- return 0, err
- }
- return retriedFetchChunkData(data, urlStrings, cipherKey, isGzipped, false, offset)
-}
-
func retriedFetchChunkData(buffer []byte, urlStrings []string, cipherKey []byte, isGzipped bool, isFullChunk bool, offset int64) (n int, err error) {
var shouldRetry bool