Skip to content

Commit c1350a7

Browse files
authored
graphNode: Drop unused Order field (#308)
The order field on graphNode is unused. Drop it.
1 parent f774a98 commit c1350a7

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

graph.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ import "go.uber.org/dig/internal/graph"
2424

2525
// graphNode is a single node in the dependency graph.
2626
type graphNode struct {
27-
// The index of this node in the graphHolder's nodes.
28-
Order int
2927
Wrapped interface{}
3028
}
3129

@@ -83,7 +81,6 @@ func (gh *graphHolder) EdgesFrom(u int) []int {
8381
func (gh *graphHolder) NewNode(wrapped interface{}) int {
8482
order := len(gh.nodes)
8583
gh.nodes = append(gh.nodes, &graphNode{
86-
Order: order,
8784
Wrapped: wrapped,
8885
})
8986
return order

0 commit comments

Comments
 (0)