journal: delete unused function mmap_cache_close_context

This never had any callers. Contexts are freed when the MMapCache is
freed.
This commit is contained in:
Michal Schmidt
2014-12-13 00:47:23 +01:00
parent 7a9dabea7e
commit 634ed0ee34
2 changed files with 0 additions and 13 deletions
-12
View File
@@ -591,18 +591,6 @@ void mmap_cache_close_fd(MMapCache *m, int fd) {
fd_free(f);
}
void mmap_cache_close_context(MMapCache *m, unsigned context) {
Context *c;
assert(m);
c = hashmap_get(m->contexts, UINT_TO_PTR(context + 1));
if (!c)
return;
context_free(c);
}
unsigned mmap_cache_get_hit(MMapCache *m) {
assert(m);
-1
View File
@@ -42,7 +42,6 @@ int mmap_cache_get(
struct stat *st,
void **ret);
void mmap_cache_close_fd(MMapCache *m, int fd);
void mmap_cache_close_context(MMapCache *m, unsigned context);
unsigned mmap_cache_get_hit(MMapCache *m);
unsigned mmap_cache_get_missed(MMapCache *m);