Sfoglia il codice sorgente

lib/db: Remove unused blockFinder global (#6534)

greatroar 5 anni fa
parent
commit
82fbcb96f8
1 ha cambiato i file con 0 aggiunte e 6 eliminazioni
  1. 0 6
      lib/db/blockmap.go

+ 0 - 6
lib/db/blockmap.go

@@ -13,17 +13,11 @@ import (
 	"github.com/syncthing/syncthing/lib/osutil"
 	"github.com/syncthing/syncthing/lib/osutil"
 )
 )
 
 
-var blockFinder *BlockFinder
-
 type BlockFinder struct {
 type BlockFinder struct {
 	db *Lowlevel
 	db *Lowlevel
 }
 }
 
 
 func NewBlockFinder(db *Lowlevel) *BlockFinder {
 func NewBlockFinder(db *Lowlevel) *BlockFinder {
-	if blockFinder != nil {
-		return blockFinder
-	}
-
 	return &BlockFinder{
 	return &BlockFinder{
 		db: db,
 		db: db,
 	}
 	}