From 2a16484a750361974ffb7a4faa22bec7afda2f46 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Thu, 10 Mar 2022 16:45:58 -0300 Subject: support: Remove unused extract_8 function --- support/support_format_dns_packet.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'support') diff --git a/support/support_format_dns_packet.c b/support/support_format_dns_packet.c index 8ed2346..e8b3c12 100644 --- a/support/support_format_dns_packet.c +++ b/support/support_format_dns_packet.c @@ -32,17 +32,6 @@ struct in_buffer }; static inline bool -extract_8 (struct in_buffer *in, unsigned char *value) -{ - if (in->size == 0) - return false; - *value = in->data[0]; - ++in->data; - --in->size; - return true; -} - -static inline bool extract_16 (struct in_buffer *in, unsigned short *value) { if (in->size < 2) -- cgit v1.1