[COMMITTED] support: Remove unused extract_8 function

Message ID 20220323183101.756355-1-adhemerval.zanella@linaro.org
State Committed
Commit 2a16484a750361974ffb7a4faa22bec7afda2f46
Headers
Series [COMMITTED] support: Remove unused extract_8 function |

Commit Message

Adhemerval Zanella March 23, 2022, 6:31 p.m. UTC
  ---
 support/support_format_dns_packet.c | 11 -----------
 1 file changed, 11 deletions(-)
  

Patch

diff --git a/support/support_format_dns_packet.c b/support/support_format_dns_packet.c
index 8ed234603e..e8b3c125e3 100644
--- a/support/support_format_dns_packet.c
+++ b/support/support_format_dns_packet.c
@@ -31,17 +31,6 @@  struct in_buffer
   size_t size;
 };
 
-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)
 {