summaryrefslogtreecommitdiff
path: root/src/caches/dcache_clean_expired.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-12-21 09:44:02 +0000
committerLaurent Bercot <ska@appnovation.com>2023-12-21 09:44:02 +0000
commit071535f5d7aa811647ed359fab431c17c9c5e2a0 (patch)
treeec1e670f772805b47e3892c5cba7294414ee2f13 /src/caches/dcache_clean_expired.c
parentb30b381737525c88ae8623258d63f793dbdca08f (diff)
downloads6-dns-071535f5d7aa811647ed359fab431c17c9c5e2a0.tar.xz
Remove unused caches/ subdir
dcache is moved to shibari. Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/caches/dcache_clean_expired.c')
-rw-r--r--src/caches/dcache_clean_expired.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/caches/dcache_clean_expired.c b/src/caches/dcache_clean_expired.c
deleted file mode 100644
index 8a5b12c..0000000
--- a/src/caches/dcache_clean_expired.c
+++ /dev/null
@@ -1,20 +0,0 @@
-/* ISC license. */
-
-#include <stdint.h>
-
-#include <skalibs/tai.h>
-#include <skalibs/avltree.h>
-
-#include <s6-dns/dcache.h>
-#include "dcache-internal.h"
-
-void dcache_clean_expired (dcache_t *z, tain const *stamp)
-{
- for (;;)
- {
- uint32_t i ;
- if (!avltree_min(&z->by_expire, &i)) break ;
- if (tain_less(stamp, &DNODE(z, i)->expire)) break ;
- dcache_delete(z, i) ;
- }
-}