summaryrefslogtreecommitdiff
path: root/symlinks.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-01-11 21:18:20 -0800
committerJunio C Hamano <gitster@pobox.com>2010-01-17 22:49:36 -0800
commit64161a6b23920c96485131fb51d82d8ca13b4e1d (patch)
tree89b5d67bc00b4b81fe4ffb83c5698448fffcfb12 /symlinks.c
parentc76189875b35ca04d42df915cd902a33fdbcb9b0 (diff)
downloadgit-64161a6b23920c96485131fb51d82d8ca13b4e1d.tar.gz
symlinks.c: remove unused functions
invalidate_lstat_cache() and clear_lstat_cache() are not used anywhere. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'symlinks.c')
-rw-r--r--symlinks.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/symlinks.c b/symlinks.c
index 7b0a86d357..8860120011 100644
--- a/symlinks.c
+++ b/symlinks.c
@@ -179,37 +179,6 @@ static int lstat_cache(struct cache_def *cache, const char *name, int len,
return ret_flags;
}
-/*
- * Invalidate the given 'name' from the cache, if 'name' matches
- * completely with the cache.
- */
-void invalidate_lstat_cache(const char *name, int len)
-{
- int match_len, previous_slash;
- struct cache_def *cache = &default_cache; /* FIXME */
-
- match_len = longest_path_match(name, len, cache->path, cache->len,
- &previous_slash);
- if (len == match_len) {
- if ((cache->track_flags & FL_DIR) && previous_slash > 0) {
- cache->path[previous_slash] = '\0';
- cache->len = previous_slash;
- cache->flags = FL_DIR;
- } else {
- reset_lstat_cache(cache);
- }
- }
-}
-
-/*
- * Completely clear the contents of the cache
- */
-void clear_lstat_cache(void)
-{
- struct cache_def *cache = &default_cache; /* FIXME */
- reset_lstat_cache(cache);
-}
-
#define USE_ONLY_LSTAT 0
/*