summaryrefslogtreecommitdiff
path: root/src/journal
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2014-12-03 18:23:23 +0100
committerMichal Schmidt <mschmidt@redhat.com>2014-12-13 00:47:23 +0100
commit634ed0ee3466e5e5f78d3acbe9782650ff456288 (patch)
treefbcb85b4a2228f858efee935d754bc2a756055ad /src/journal
parent7a9dabea7eabd4dd87f8774234265590d34761da (diff)
journal: delete unused function mmap_cache_close_context
This never had any callers. Contexts are freed when the MMapCache is freed.
Diffstat (limited to 'src/journal')
-rw-r--r--src/journal/mmap-cache.c12
-rw-r--r--src/journal/mmap-cache.h1
2 files changed, 0 insertions, 13 deletions
diff --git a/src/journal/mmap-cache.c b/src/journal/mmap-cache.c
index f34d26085..949f97819 100644
--- a/src/journal/mmap-cache.c
+++ b/src/journal/mmap-cache.c
@@ -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);
diff --git a/src/journal/mmap-cache.h b/src/journal/mmap-cache.h
index 3e2ffbbfd..543a2bf2d 100644
--- a/src/journal/mmap-cache.h
+++ b/src/journal/mmap-cache.h
@@ -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);