summaryrefslogtreecommitdiff
path: root/refs/ref-cache.h
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2017-04-16 06:41:42 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-04-17 04:32:46 (GMT)
commitf890db83ee426f4bda0458728e813e45cc8531a7 (patch)
treef20737b7df0f51483ba14b8f48bfa82387562967 /refs/ref-cache.h
parent50c2d8555bbc5b29625452fbcc92d4e3395e7366 (diff)
downloadgit-f890db83ee426f4bda0458728e813e45cc8531a7.zip
git-f890db83ee426f4bda0458728e813e45cc8531a7.tar.gz
git-f890db83ee426f4bda0458728e813e45cc8531a7.tar.bz2
do_for_each_entry_in_dir(): delete function
Its only remaining caller was itself. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs/ref-cache.h')
-rw-r--r--refs/ref-cache.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/refs/ref-cache.h b/refs/ref-cache.h
index 5e7a918..ffdc54f 100644
--- a/refs/ref-cache.h
+++ b/refs/ref-cache.h
@@ -251,17 +251,6 @@ struct ref_iterator *cache_ref_iterator_begin(struct ref_cache *cache,
const char *prefix,
int prime_dir);
-typedef int each_ref_entry_fn(struct ref_entry *entry, void *cb_data);
-
-/*
- * Call `fn` for each reference in `dir`. Recurse into subdirectories,
- * sorting them before iterating. This function does not sort `dir`
- * itself; it should be sorted beforehand. `fn` is called for all
- * references, including broken ones.
- */
-int do_for_each_entry_in_dir(struct ref_dir *dir,
- each_ref_entry_fn fn, void *cb_data);
-
/*
* Peel the entry (if possible) and return its new peel_status. If
* repeel is true, re-peel the entry even if there is an old peeled