From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 89D9C3947436; Wed, 16 Mar 2022 18:02:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 89D9C3947436 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/azanella/clang] support: Remove unused extract_8 function X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: b97ed7d0dc10e653769cc850cc41e04b807ffaec X-Git-Newrev: a849ca8df6d4086e215b0af40ef7e93d691412cb Message-Id: <20220316180256.89D9C3947436@sourceware.org> Date: Wed, 16 Mar 2022 18:02:56 +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, 16 Mar 2022 18:02:56 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=a849ca8df6d4086e215b0af40ef7e93d691412cb commit a849ca8df6d4086e215b0af40ef7e93d691412cb 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) {