mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-08-01 17:40:22 +08:00
remove unused code
This commit is contained in:
parent
cf90f76a35
commit
06748f2771
@ -4,7 +4,6 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"github.com/seaweedfs/seaweedfs/weed/util/mem"
|
"github.com/seaweedfs/seaweedfs/weed/util/mem"
|
||||||
"io"
|
"io"
|
||||||
"sync"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/seaweedfs/seaweedfs/weed/glog"
|
"github.com/seaweedfs/seaweedfs/weed/glog"
|
||||||
@ -190,14 +189,6 @@ func (v *Volume) readNeedleDataInto(n *needle.Needle, readOption *ReadOption, wr
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func synchronizedRead(rwLock *sync.RWMutex, enabled bool, closure func() error) error {
|
|
||||||
if enabled {
|
|
||||||
rwLock.RLock()
|
|
||||||
defer rwLock.RUnlock()
|
|
||||||
}
|
|
||||||
return closure()
|
|
||||||
}
|
|
||||||
|
|
||||||
func min(x, y int) int {
|
func min(x, y int) int {
|
||||||
if x < y {
|
if x < y {
|
||||||
return x
|
return x
|
||||||
|
Loading…
Reference in New Issue
Block a user