public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] support: Remove unused extract_8 function
@ 2022-03-23 18:26 Adhemerval Zanella
  0 siblings, 0 replies; only message in thread
From: Adhemerval Zanella @ 2022-03-23 18:26 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=2a16484a750361974ffb7a4faa22bec7afda2f46

commit 2a16484a750361974ffb7a4faa22bec7afda2f46
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 10 16:45:58 2022 -0300

    support: Remove unused extract_8 function

Diff:
---
 support/support_format_dns_packet.c | 11 -----------
 1 file changed, 11 deletions(-)

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)
 {


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-03-23 18:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-23 18:26 [glibc] support: Remove unused extract_8 function Adhemerval Zanella

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).