Remove unused walk_cache() - dedup - deduplicating backup program (HTM) git clone git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/ (DIR) Log (DIR) Files (DIR) Refs (DIR) Tags (DIR) README (DIR) LICENSE --- (DIR) commit 7bc1938fee548aff02249ee16bd57db7e5579e9b (DIR) parent 85dd2ab8858f5d67de5ad4e978cbde204b4e7b10 (HTM) Author: sin <sin@2f30.org> Date: Sat, 9 Mar 2019 21:41:35 +0000 Remove unused walk_cache() Diffstat: M cache.c | 10 ---------- M dedup.h | 2 -- 2 files changed, 0 insertions(+), 12 deletions(-) --- (DIR) 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); -} (DIR) 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);