aboutsummaryrefslogtreecommitdiff
path: root/commitquery/query_mark_phase.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-04-02 06:23:30 +0000
committerGravatar Runxi Yu2026-04-02 06:28:39 +0000
commita041d523de389b65b98a5373a8034041db2a8d83 (patch)
tree7b423dc735f463be616045f2c3c2095a7737aca7 /commitquery/query_mark_phase.go
parentresearch: Add dynamic pack resources (diff)
signatureNo signature
*: Remove
Diffstat (limited to 'commitquery/query_mark_phase.go')
-rw-r--r--commitquery/query_mark_phase.go36
1 files changed, 0 insertions, 36 deletions
diff --git a/commitquery/query_mark_phase.go b/commitquery/query_mark_phase.go
deleted file mode 100644
index 0814df38..00000000
--- a/commitquery/query_mark_phase.go
+++ /dev/null
@@ -1,36 +0,0 @@
-package commitquery
-
-// beginMarkPhase starts one tracked mark-mutation phase.
-func (query *query) beginMarkPhase() {
- for _, idx := range query.touched {
- query.nodes[idx].marks = 0
- }
-
- query.markPhase++
- if query.markPhase == 0 {
- query.markPhase++
- for i := range query.nodes {
- query.nodes[i].touchedPhase = 0
- }
- }
-
- query.touched = query.touched[:0]
-}
-
-// clearTouchedMarks clears the provided bits from all nodes touched in the
-// current mark phase.
-func (query *query) clearTouchedMarks(bits markBits) {
- for _, idx := range query.touched {
- query.nodes[idx].marks &^= bits
- }
-}
-
-// trackTouched records one node in the current mark phase.
-func (query *query) trackTouched(idx nodeIndex) {
- if query.nodes[idx].touchedPhase == query.markPhase {
- return
- }
-
- query.nodes[idx].touchedPhase = query.markPhase
- query.touched = append(query.touched, idx)
-}