From: Vladimír Čunát Date: Fri, 1 Jul 2022 08:33:59 +0000 (+0200) Subject: lib/utils: drop long unused parts X-Git-Tag: v5.5.2~7^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04c786917fec786412ccc72dfd66980d1696910d;p=thirdparty%2Fknot-resolver.git lib/utils: drop long unused parts --- diff --git a/lib/utils.h b/lib/utils.h index c3661d361..30ed4c49d 100644 --- a/lib/utils.h +++ b/lib/utils.h @@ -405,13 +405,6 @@ static inline bool kr_sockaddr_link_local(const struct sockaddr *addr) return kr_bitcmp((char *) ip6->sin6_addr.s6_addr, (char *) prefix, 10) == 0; } -/** @internal RR map flags. */ -static const uint8_t KEY_FLAG_RRSIG = 0x02; -static inline uint8_t KEY_FLAG_RANK(const char *key) - { return ((uint8_t)(key[0])) >> 2; } -static inline bool KEY_COVERING_RRSIG(const char *key) - { return ((uint8_t)(key[0])) & KEY_FLAG_RRSIG; } - /* Stash key = {[5] class, [1-255] owner, [5] type, [5] additional, [1] \x00 } */ #define KR_RRKEY_LEN (16 + KNOT_DNAME_MAXLEN) /** Create unique null-terminated string key for RR.