mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 02:48:59 +00:00
lib/db: Remove unused blockFinder global (#6534)
This commit is contained in:
parent
37ede49077
commit
82fbcb96f8
@ -13,17 +13,11 @@ import (
|
||||
"github.com/syncthing/syncthing/lib/osutil"
|
||||
)
|
||||
|
||||
var blockFinder *BlockFinder
|
||||
|
||||
type BlockFinder struct {
|
||||
db *Lowlevel
|
||||
}
|
||||
|
||||
func NewBlockFinder(db *Lowlevel) *BlockFinder {
|
||||
if blockFinder != nil {
|
||||
return blockFinder
|
||||
}
|
||||
|
||||
return &BlockFinder{
|
||||
db: db,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user