aboutsummaryrefslogtreecommitdiffstats
path: root/src/caches/dcache_search.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_search.c
parentb30b381737525c88ae8623258d63f793dbdca08f (diff)
downloads6-dns-071535f5d7aa811647ed359fab431c17c9c5e2a0.tar.gz
Remove unused caches/ subdir
dcache is moved to shibari. Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/caches/dcache_search.c')
-rw-r--r--src/caches/dcache_search.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/caches/dcache_search.c b/src/caches/dcache_search.c
deleted file mode 100644
index 7ca8324..0000000
--- a/src/caches/dcache_search.c
+++ /dev/null
@@ -1,15 +0,0 @@
-/* ISC license. */
-
-#include <stdint.h>
-
-#include <skalibs/avltree.h>
-
-#include <s6-dns/dcache.h>
-#include "dcache-internal.h"
-
-dcache_node_t *dcache_search (dcache_t *z, char const *key, uint16_t keylen)
-{
- uint32_t i ;
- dcache_key_t k = { .s = (char *)key, .len = keylen } ;
- return avltree_search(&z->by_key, &k, &i) ? DNODE(z, i) : 0 ;
-}