From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id A67C13853804; Wed, 23 Mar 2022 18:26:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A67C13853804 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc] support: Remove unused extract_8 function X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/master X-Git-Oldrev: 41397b9337da4f9c4bba4b6786c9edf961469ace X-Git-Newrev: 2a16484a750361974ffb7a4faa22bec7afda2f46 Message-Id: <20220323182618.A67C13853804@sourceware.org> Date: Wed, 23 Mar 2022 18:26:18 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Mar 2022 18:26:18 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=2a16484a750361974ffb7a4faa22bec7afda2f46 commit 2a16484a750361974ffb7a4faa22bec7afda2f46 Author: Adhemerval Zanella 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) {