refs: remove unused `refs_for_each_include_root_ref()`

Remove the unused `refs_for_each_include_root_ref()` function. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Patrick Steinhardt committed Feb 23, 2026 at 12:59 UTC 57fa3161a0ba4fb5e17dba8244bc854d91ae98bf
2 files changed -13
refs.c
-7
@@ -1932,13 +1932,6 @@ int refs_for_each_rawref_in(struct ref_store *refs, const char *prefix,
1932 DO_FOR_EACH_INCLUDE_BROKEN, cb_data);
1933 }
1934
1935 -int refs_for_each_include_root_refs(struct ref_store *refs, each_ref_fn fn,
1936 - void *cb_data)
1937 -{
1938 - return do_for_each_ref(refs, "", NULL, fn, 0,
1939 - DO_FOR_EACH_INCLUDE_ROOT_REFS, cb_data);
1940 -}
1941 -
1935 static int qsort_strcmp(const void *va, const void *vb)
1936 {
1937 const char *a = *(const char **)va;
refs.h
-6
@@ -471,12 +471,6 @@ int refs_for_each_rawref(struct ref_store *refs, each_ref_fn fn, void *cb_data);
471 int refs_for_each_rawref_in(struct ref_store *refs, const char *prefix,
472 each_ref_fn fn, void *cb_data);
473
474 -/*
475 - * Iterates over all refs including root refs, i.e. pseudorefs and HEAD.
476 - */
477 -int refs_for_each_include_root_refs(struct ref_store *refs, each_ref_fn fn,
478 - void *cb_data);
479 -
474 /*
475 * Normalizes partial refs to their fully qualified form.
476 * Will prepend <prefix> to the <pattern> if it doesn't start with 'refs/'.