aboutsummaryrefslogtreecommitdiff
path: root/commitquery/query_new.go
diff options
context:
space:
mode:
Diffstat (limited to 'commitquery/query_new.go')
-rw-r--r--commitquery/query_new.go19
1 files changed, 0 insertions, 19 deletions
diff --git a/commitquery/query_new.go b/commitquery/query_new.go
deleted file mode 100644
index 0f23a321..00000000
--- a/commitquery/query_new.go
+++ /dev/null
@@ -1,19 +0,0 @@
-package commitquery
-
-import (
- commitgraphread "codeberg.org/lindenii/furgit/format/commitgraph/read"
- objectfetch "codeberg.org/lindenii/furgit/object/fetch"
- objectid "codeberg.org/lindenii/furgit/object/id"
-)
-
-// newQuery builds one empty mutable worker over one object fetcher and graph.
-//
-// Labels: Deps-Borrowed, Life-Parent.
-func newQuery(fetcher *objectfetch.Fetcher, graph *commitgraphread.Reader) *query {
- return &query{
- fetcher: fetcher,
- graph: graph,
- byOID: make(map[objectid.ObjectID]nodeIndex),
- byGraphPos: make(map[commitgraphread.Position]nodeIndex),
- }
-}