summaryrefslogtreecommitdiff
path: root/refs.h
diff options
context:
space:
mode:
authorStefan Beller <stefanbeller@googlemail.com>2013-10-26 17:03:01 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-10-28 15:55:56 (GMT)
commit746593bdcaf86827e016c97e091442d6a227de0f (patch)
tree2f5085f41509da2b9cbf367a0d938adb2d40b171 /refs.h
parentca462804c68b5ac0936242d4938fc9273b00180d (diff)
downloadgit-746593bdcaf86827e016c97e091442d6a227de0f.zip
git-746593bdcaf86827e016c97e091442d6a227de0f.tar.gz
git-746593bdcaf86827e016c97e091442d6a227de0f.tar.bz2
refs: remove unused function invalidate_ref_cache
The function 'invalidate_ref_cache' was introduced in 79c7ca5 (2011-10-17, invalidate_ref_cache(): rename function from invalidate_cached_refs()) by a rename and elevated to be publicly usable in 8be8bde (2011-10-17, invalidate_ref_cache(): expose this function in the refs API) However it is not used anymore, as 8bf90dc (2011-10-17, write_ref_sha1(): only invalidate the loose ref cache) and (much) later 506a760 (2013-04-22, refs: change how packed refs are deleted) removed any calls to this function. So it seems as if we don't need that function any more, good bye! Signed-off-by: Stefan Beller <stefanbeller@googlemail.com> Acked-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.h')
-rw-r--r--refs.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/refs.h b/refs.h
index 9e5db3a..861170d 100644
--- a/refs.h
+++ b/refs.h
@@ -151,14 +151,6 @@ extern void unlock_ref(struct ref_lock *lock);
/** Writes sha1 into the ref specified by the lock. **/
extern int write_ref_sha1(struct ref_lock *lock, const unsigned char *sha1, const char *msg);
-/*
- * Invalidate the reference cache for the specified submodule. Use
- * submodule=NULL to invalidate the cache for the main module. This
- * function must be called if references are changed via a mechanism
- * other than the refs API.
- */
-extern void invalidate_ref_cache(const char *submodule);
-
/** Setup reflog before using. **/
int log_ref_setup(const char *ref_name, char *logfile, int bufsize);