diff options
author | Stefan Beller <stefanbeller@googlemail.com> | 2013-10-26 19:03:01 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-10-28 08:55:56 -0700 |
commit | 746593bdcaf86827e016c97e091442d6a227de0f (patch) | |
tree | 2f5085f41509da2b9cbf367a0d938adb2d40b171 /refs.c | |
parent | ca462804c68b5ac0936242d4938fc9273b00180d (diff) | |
download | git-746593bdcaf86827e016c97e091442d6a227de0f.tar.gz |
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.c')
-rw-r--r-- | refs.c | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -943,13 +943,6 @@ static struct ref_cache *get_ref_cache(const char *submodule) return refs; } -void invalidate_ref_cache(const char *submodule) -{ - struct ref_cache *refs = get_ref_cache(submodule); - clear_packed_ref_cache(refs); - clear_loose_ref_cache(refs); -} - /* The length of a peeled reference line in packed-refs, including EOL: */ #define PEELED_LINE_LENGTH 42 |