diff options
| author | 2026-03-29 13:38:19 +0000 | |
|---|---|---|
| committer | 2026-03-29 13:39:49 +0000 | |
| commit | 37707aada0157f255dbad920b917efb601184e12 (patch) | |
| tree | 29f79d242c764de8d6f1e65bcc847e53f21cd646 /commitquery/node.go | |
| parent | commitquery: Context has been gone long ago (diff) | |
| signature | No signature | |
commitquery: Reorganize
Diffstat (limited to 'commitquery/node.go')
| -rw-r--r-- | commitquery/node.go | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/commitquery/node.go b/commitquery/node.go index d5f1d3cd..7432a719 100644 --- a/commitquery/node.go +++ b/commitquery/node.go @@ -5,9 +5,6 @@ import ( objectid "codeberg.org/lindenii/furgit/object/id" ) -// nodeIndex identifies one internal query node. -type nodeIndex int - // node stores one mutable commit traversal node. type node struct { id objectid.ObjectID @@ -26,14 +23,3 @@ type node struct { touchedPhase uint32 } - -// newNode allocates one empty internal node. -func (query *query) newNode(id objectid.ObjectID) nodeIndex { - count := len(query.nodes) - - idx := nodeIndex(count) - - query.nodes = append(query.nodes, node{id: id}) - - return idx -} |
