dedup

deduplicating backup program
git clone git://git.2f30.org/dedup
Log | Files | Refs | README | LICENSE

commit 7bc1938fee548aff02249ee16bd57db7e5579e9b
parent 85dd2ab8858f5d67de5ad4e978cbde204b4e7b10
Author: sin <sin@2f30.org>
Date:   Sat,  9 Mar 2019 21:41:35 +0000

Remove unused walk_cache()

Diffstat:
Mcache.c | 10----------
Mdedup.h | 2--
2 files changed, 0 insertions(+), 12 deletions(-)

diff --git a/cache.c b/cache.c @@ -100,13 +100,3 @@ lookup_cache_entry(struct cache *cache, struct blk_desc *desc) } return -1; } - -void -walk_cache(struct cache *cache, - int (*fn)(struct blk_desc *, void *), void *arg) -{ - struct cache_node *node; - - RB_FOREACH(node, cache_head, &cache->nodes) - (*fn)(&node->desc, arg); -} diff --git a/dedup.h b/dedup.h @@ -75,8 +75,6 @@ struct cache *alloc_cache(void); void free_cache(struct cache *cache); void add_cache_entry(struct cache *cache, struct blk_desc *desc); int lookup_cache_entry(struct cache *cache, struct blk_desc *desc); -void walk_cache(struct cache *cache, - int (*fn)(struct blk_desc *, void *), void *arg); /* chunker.c */ struct chunker *alloc_chunker(int fd, size_t cap);