From 96c35a9ba5f1b5afac1e30ca93815dcd540d8b16 Mon Sep 17 00:00:00 2001 From: Patrick Steinhardt Date: Mon, 23 Feb 2026 12:59:50 +0100 Subject: refs: replace `refs_for_each_namespaced_ref()` Replace calls to `refs_for_each_namespaced_ref()` with the newly introduced `refs_for_each_ref_ext()` function. Signed-off-by: Patrick Steinhardt Signed-off-by: Junio C Hamano --- refs.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'refs.c') diff --git a/refs.c b/refs.c index ca7fc7289b..35a4925ac4 100644 --- a/refs.c +++ b/refs.c @@ -1951,17 +1951,6 @@ int refs_for_each_replace_ref(struct ref_store *refs, refs_for_each_cb cb, void return refs_for_each_ref_ext(refs, cb, cb_data, &opts); } -int refs_for_each_namespaced_ref(struct ref_store *refs, - const char **exclude_patterns, - refs_for_each_cb cb, void *cb_data) -{ - struct refs_for_each_ref_options opts = { - .exclude_patterns = exclude_patterns, - .namespace = get_git_namespace(), - }; - return refs_for_each_ref_ext(refs, cb, cb_data, &opts); -} - static int qsort_strcmp(const void *va, const void *vb) { const char *a = *(const char **)va; -- cgit v1.3-6-g1900