mirror of
https://github.com/git-for-windows/git.git
synced 2026-06-28 06:35:27 -05:00
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:
committed by
Junio C Hamano
parent
bafb80850a
commit
599bbde368
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user