From: Patrick Steinhardt Date: Fri, 20 Feb 2026 08:24:09 GMT Subject: [PATCH 05/17] refs: remove unused `refs_for_each_include_root_ref()` Message-ID: <20260220-pks-refs-for-each-unification-v1-5-17170bd99de1@pks.im> In-Reply-To: <20260220-pks-refs-for-each-unification-v1-0-17170bd99de1@pks.im> Remove the unused `refs_for_each_include_root_ref()` function. Signed-off-by: Patrick Steinhardt --- refs.c | 7 ------- refs.h | 6 ------ 2 files changed, 13 deletions(-) diff --git a/refs.c b/refs.c index e9ac0a7101..a45cc61211 100644 --- a/refs.c +++ b/refs.c @@ -1932,13 +1932,6 @@ int refs_for_each_rawref_in(struct ref_store *refs, const char *prefix, REFS_FOR_EACH_INCLUDE_BROKEN, cb_data); } -int refs_for_each_include_root_refs(struct ref_store *refs, refs_for_each_cb fn, - void *cb_data) -{ - return do_for_each_ref(refs, "", NULL, fn, 0, - REFS_FOR_EACH_INCLUDE_ROOT_REFS, cb_data); -} - static int qsort_strcmp(const void *va, const void *vb) { const char *a = *(const char **)va; diff --git a/refs.h b/refs.h index e37574009b..5190e98b2c 100644 --- a/refs.h +++ b/refs.h @@ -509,12 +509,6 @@ int refs_for_each_rawref(struct ref_store *refs, refs_for_each_cb fn, void *cb_d int refs_for_each_rawref_in(struct ref_store *refs, const char *prefix, refs_for_each_cb fn, void *cb_data); -/* - * Iterates over all refs including root refs, i.e. pseudorefs and HEAD. - */ -int refs_for_each_include_root_refs(struct ref_store *refs, refs_for_each_cb fn, - void *cb_data); - /* * Normalizes partial refs to their fully qualified form. * Will prepend to the if it doesn't start with 'refs/'. -- 2.53.0.414.gf7e9f6c205.dirty