commit-reach: remove unused nonstale_queue dedup wrappers

nonstale_queue_put_dedup() and nonstale_queue_get_dedup() became
unused after the previous commit. The core nonstale_queue functions
remain in use by ahead_behind().

Signed-off-by: Kristofer Karlsson <krka@spotify.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Kristofer Karlsson
2026-06-24 12:14:12 +00:00
committed by Junio C Hamano
parent bafb80850a
commit 599bbde368

View File

@@ -79,24 +79,6 @@ static void clear_nonstale_queue(struct nonstale_queue *queue)
queue->max_nonstale = NULL;
}
static void nonstale_queue_put_dedup(struct nonstale_queue *queue,
struct commit *c)
{
if (c->object.flags & ENQUEUED)
return;
c->object.flags |= ENQUEUED;
nonstale_queue_put(queue, c);
}
static struct commit *nonstale_queue_get_dedup(struct nonstale_queue *queue)
{
struct commit *commit = nonstale_queue_get(queue);
if (commit)
commit->object.flags &= ~ENQUEUED;
return commit;
}
/*
* Priority queue with per-side commit counters for paint_down_to_common().
* Each non-stale queued commit occupies exactly one bucket: PARENT1-only,