mirror of
https://github.com/octoleo/syncthing.git
synced 2024-09-11 01:19:00 +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