File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ func ScanRepositoryUsingGraph(
69
69
ctx , cancel := context .WithCancel (context .TODO ())
70
70
defer cancel ()
71
71
72
- graph := NewGraph (rg , nameStyle )
72
+ graph := NewGraph (nameStyle )
73
73
74
74
refIter , err := repo .NewReferenceIter (ctx )
75
75
if err != nil {
@@ -337,8 +337,6 @@ func ScanRepositoryUsingGraph(
337
337
338
338
// Graph is an object graph that is being built up.
339
339
type Graph struct {
340
- rg RefGrouper
341
-
342
340
blobLock sync.Mutex
343
341
blobSizes map [git.OID ]BlobSize
344
342
@@ -361,10 +359,8 @@ type Graph struct {
361
359
}
362
360
363
361
// NewGraph creates and returns a new `*Graph` instance.
364
- func NewGraph (rg RefGrouper , nameStyle NameStyle ) * Graph {
362
+ func NewGraph (nameStyle NameStyle ) * Graph {
365
363
return & Graph {
366
- rg : rg ,
367
-
368
364
blobSizes : make (map [git.OID ]BlobSize ),
369
365
370
366
treeRecords : make (map [git.OID ]* treeRecord ),
You can’t perform that action at this time.
0 commit comments