]> git.ipfire.org Git - thirdparty/git.git/commitdiff
commit-reach: remove unused nonstale_queue dedup wrappers
authorKristofer Karlsson <krka@spotify.com>
Wed, 24 Jun 2026 12:14:12 +0000 (12:14 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 24 Jun 2026 16:58:50 +0000 (09:58 -0700)
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>
commit-reach.c

index bf102f5e287f4ec9ee8b0790fa1ede9fd1d5e9a5..e0d9874f99e320a922b02d1487bf470c7b269620 100644 (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,