Skip to content

Commit 9ed78b1

Browse files
committed
Graph.rg: remove member
It wasn't used.
1 parent 0b6d3a2 commit 9ed78b1

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

sizes/graph.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func ScanRepositoryUsingGraph(
6969
ctx, cancel := context.WithCancel(context.TODO())
7070
defer cancel()
7171

72-
graph := NewGraph(rg, nameStyle)
72+
graph := NewGraph(nameStyle)
7373

7474
refIter, err := repo.NewReferenceIter(ctx)
7575
if err != nil {
@@ -337,8 +337,6 @@ func ScanRepositoryUsingGraph(
337337

338338
// Graph is an object graph that is being built up.
339339
type Graph struct {
340-
rg RefGrouper
341-
342340
blobLock sync.Mutex
343341
blobSizes map[git.OID]BlobSize
344342

@@ -361,10 +359,8 @@ type Graph struct {
361359
}
362360

363361
// NewGraph creates and returns a new `*Graph` instance.
364-
func NewGraph(rg RefGrouper, nameStyle NameStyle) *Graph {
362+
func NewGraph(nameStyle NameStyle) *Graph {
365363
return &Graph{
366-
rg: rg,
367-
368364
blobSizes: make(map[git.OID]BlobSize),
369365

370366
treeRecords: make(map[git.OID]*treeRecord),

0 commit comments

Comments
 (0)