diff options
| author | chrislu <chris.lu@gmail.com> | 2022-07-07 22:26:03 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-07-07 22:26:03 -0700 |
| commit | 2ea18cdcc8b9ea3c6ba74672f3c18d5d1a9e10fe (patch) | |
| tree | 497620f8884e972dce18455b783f768349554f65 | |
| parent | b7de5c6c430ac1d8acb79a0dd5197f2463e4266c (diff) | |
| download | seaweedfs-2ea18cdcc8b9ea3c6ba74672f3c18d5d1a9e10fe.tar.xz seaweedfs-2ea18cdcc8b9ea3c6ba74672f3c18d5d1a9e10fe.zip | |
remove dead code
| -rw-r--r-- | weed/filer/filechunks.go | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/weed/filer/filechunks.go b/weed/filer/filechunks.go index 48b344bf8..5a600a188 100644 --- a/weed/filer/filechunks.go +++ b/weed/filer/filechunks.go @@ -3,11 +3,9 @@ package filer import ( "bytes" "fmt" - "math" - "sync" - "github.com/chrislusf/seaweedfs/weed/wdclient" "golang.org/x/exp/slices" + "math" "github.com/chrislusf/seaweedfs/weed/pb/filer_pb" "github.com/chrislusf/seaweedfs/weed/util" @@ -189,12 +187,6 @@ func logPrintf(name string, visibles []VisibleInterval) { */ } -var bufPool = sync.Pool{ - New: func() interface{} { - return new(VisibleInterval) - }, -} - func MergeIntoVisibles(visibles []VisibleInterval, chunk *filer_pb.FileChunk) (newVisibles []VisibleInterval) { newV := newVisibleInterval(chunk.Offset, chunk.Offset+int64(chunk.Size), chunk.GetFileIdString(), chunk.Mtime, 0, chunk.Size, chunk.CipherKey, chunk.IsCompressed) |
