diff options
| author | Patrick Steinhardt <ps@pks.im> | 2020-06-08 12:39:09 +0200 |
|---|---|---|
| committer | Patrick Steinhardt <ps@pks.im> | 2020-06-08 21:17:57 +0200 |
| commit | 7c499b544dc3383cce38956f86d67f328bc718e6 (patch) | |
| tree | 2067e61a499af26f33725ddba35f389d67a2e732 /src/cache.c | |
| parent | b221755227c0a7155d83dc595e3902649fa0760b (diff) | |
| download | libgit2-7c499b544dc3383cce38956f86d67f328bc718e6.tar.gz | |
tree-wide: remove unused functions
We have some functions which aren't used anywhere. Let's remove them to
get rid of unneeded baggage.
Diffstat (limited to 'src/cache.c')
| -rw-r--r-- | src/cache.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/cache.c b/src/cache.c index af42b3959..1d2c0158d 100644 --- a/src/cache.c +++ b/src/cache.c @@ -41,27 +41,6 @@ int git_cache_set_max_object_size(git_object_t type, size_t size) return 0; } -void git_cache_dump_stats(git_cache *cache) -{ - git_cached_obj *object; - - if (git_cache_size(cache) == 0) - return; - - printf("Cache %p: %"PRIuZ" items cached, %"PRIdZ" bytes\n", - cache, git_cache_size(cache), cache->used_memory); - - git_oidmap_foreach_value(cache->map, object, { - char oid_str[9]; - printf(" %s%c %s (%"PRIuZ")\n", - git_object_type2string(object->type), - object->flags == GIT_CACHE_STORE_PARSED ? '*' : ' ', - git_oid_tostr(oid_str, sizeof(oid_str), &object->oid), - object->size - ); - }); -} - int git_cache_init(git_cache *cache) { memset(cache, 0, sizeof(*cache)); |
