]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
lib/utils: drop long unused parts
authorVladimír Čunát <vladimir.cunat@nic.cz>
Fri, 1 Jul 2022 08:33:59 +0000 (10:33 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 1 Aug 2022 12:34:29 +0000 (14:34 +0200)
lib/utils.h

index c3661d361d922d4523de5954cf1caff2a51a9883..30ed4c49d271bc2e475dc7ace417989883b03abf 100644 (file)
@@ -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.