mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 04:30:00 -04:00
Drop unused bufferlist code
This commit is contained in:
parent
1f6f7ccad6
commit
7ef268bb4b
8 changed files with 0 additions and 147 deletions
|
|
@ -19,7 +19,6 @@
|
|||
|
||||
#include <isc/attributes.h>
|
||||
#include <isc/buffer.h>
|
||||
#include <isc/bufferlist.h>
|
||||
#include <isc/formatcheck.h>
|
||||
#include <isc/lang.h>
|
||||
#include <isc/list.h>
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ libisc_la_HEADERS = \
|
|||
include/isc/base64.h \
|
||||
include/isc/bind9.h \
|
||||
include/isc/buffer.h \
|
||||
include/isc/bufferlist.h \
|
||||
include/isc/cmocka.h \
|
||||
include/isc/commandline.h \
|
||||
include/isc/counter.h \
|
||||
|
|
@ -159,7 +158,6 @@ libisc_la_SOURCES = \
|
|||
base64.c \
|
||||
bind9.c \
|
||||
buffer.c \
|
||||
bufferlist.c \
|
||||
commandline.c \
|
||||
counter.c \
|
||||
crc64.c \
|
||||
|
|
|
|||
|
|
@ -1,54 +0,0 @@
|
|||
/*
|
||||
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* See the COPYRIGHT file distributed with this work for additional
|
||||
* information regarding copyright ownership.
|
||||
*/
|
||||
|
||||
/*! \file */
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#include <isc/buffer.h>
|
||||
#include <isc/bufferlist.h>
|
||||
#include <isc/util.h>
|
||||
|
||||
unsigned int
|
||||
isc_bufferlist_usedcount(isc_bufferlist_t *bl) {
|
||||
isc_buffer_t *buffer;
|
||||
unsigned int length;
|
||||
|
||||
REQUIRE(bl != NULL);
|
||||
|
||||
length = 0;
|
||||
buffer = ISC_LIST_HEAD(*bl);
|
||||
while (buffer != NULL) {
|
||||
REQUIRE(ISC_BUFFER_VALID(buffer));
|
||||
length += isc_buffer_usedlength(buffer);
|
||||
buffer = ISC_LIST_NEXT(buffer, link);
|
||||
}
|
||||
|
||||
return (length);
|
||||
}
|
||||
|
||||
unsigned int
|
||||
isc_bufferlist_availablecount(isc_bufferlist_t *bl) {
|
||||
isc_buffer_t *buffer;
|
||||
unsigned int length;
|
||||
|
||||
REQUIRE(bl != NULL);
|
||||
|
||||
length = 0;
|
||||
buffer = ISC_LIST_HEAD(*bl);
|
||||
while (buffer != NULL) {
|
||||
REQUIRE(ISC_BUFFER_VALID(buffer));
|
||||
length += isc_buffer_availablelength(buffer);
|
||||
buffer = ISC_LIST_NEXT(buffer, link);
|
||||
}
|
||||
|
||||
return (length);
|
||||
}
|
||||
|
|
@ -1,78 +0,0 @@
|
|||
/*
|
||||
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* See the COPYRIGHT file distributed with this work for additional
|
||||
* information regarding copyright ownership.
|
||||
*/
|
||||
|
||||
#ifndef ISC_BUFFERLIST_H
|
||||
#define ISC_BUFFERLIST_H 1
|
||||
|
||||
/*****
|
||||
***** Module Info
|
||||
*****/
|
||||
|
||||
/*! \file isc/bufferlist.h
|
||||
*
|
||||
*
|
||||
*\brief Buffer lists have no synchronization. Clients must ensure
|
||||
* exclusive * access.
|
||||
*
|
||||
* \li Reliability:
|
||||
* No anticipated impact.
|
||||
*
|
||||
* \li Security:
|
||||
* No anticipated impact.
|
||||
*
|
||||
* \li Standards:
|
||||
* None.
|
||||
*/
|
||||
|
||||
/***
|
||||
*** Imports
|
||||
***/
|
||||
|
||||
#include <isc/lang.h>
|
||||
#include <isc/types.h>
|
||||
|
||||
ISC_LANG_BEGINDECLS
|
||||
|
||||
/***
|
||||
*** Functions
|
||||
***/
|
||||
|
||||
unsigned int
|
||||
isc_bufferlist_usedcount(isc_bufferlist_t *bl);
|
||||
/*!<
|
||||
* \brief Return the length of the sum of all used regions of all buffers in
|
||||
* the buffer list 'bl'
|
||||
*
|
||||
* Requires:
|
||||
*
|
||||
*\li 'bl' is not NULL.
|
||||
*
|
||||
* Returns:
|
||||
*\li sum of all used regions' lengths.
|
||||
*/
|
||||
|
||||
unsigned int
|
||||
isc_bufferlist_availablecount(isc_bufferlist_t *bl);
|
||||
/*!<
|
||||
* \brief Return the length of the sum of all available regions of all buffers
|
||||
* in the buffer list 'bl'
|
||||
*
|
||||
* Requires:
|
||||
*
|
||||
*\li 'bl' is not NULL.
|
||||
*
|
||||
* Returns:
|
||||
*\li sum of all available regions' lengths.
|
||||
*/
|
||||
|
||||
ISC_LANG_ENDDECLS
|
||||
|
||||
#endif /* ISC_BUFFERLIST_H */
|
||||
|
|
@ -161,8 +161,6 @@ isc_buffer_putdecint
|
|||
isc_buffer_reinit
|
||||
isc_buffer_reserve
|
||||
isc_buffer_setautorealloc
|
||||
isc_bufferlist_availablecount
|
||||
isc_bufferlist_usedcount
|
||||
isc_commandline_parse
|
||||
isc_commandline_strtoargv
|
||||
isc_condition_broadcast
|
||||
|
|
|
|||
|
|
@ -59,9 +59,6 @@
|
|||
<ClInclude Include="..\include\isc\buffer.h">
|
||||
<Filter>Library Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\include\isc\bufferlist.h">
|
||||
<Filter>Library Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\include\isc\commandline.h">
|
||||
<Filter>Library Header Files</Filter>
|
||||
</ClInclude>
|
||||
|
|
@ -470,9 +467,6 @@
|
|||
<ClCompile Include="..\buffer.c">
|
||||
<Filter>Library Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\bufferlist.c">
|
||||
<Filter>Library Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\commandline.c">
|
||||
<Filter>Library Source Files</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -266,7 +266,6 @@ copy InstallFiles ..\Build\Release\
|
|||
<ClInclude Include="..\include\isc\bind9.h" />
|
||||
<ClInclude Include="..\include\isc\boolean.h" />
|
||||
<ClInclude Include="..\include\isc\buffer.h" />
|
||||
<ClInclude Include="..\include\isc\bufferlist.h" />
|
||||
<ClInclude Include="..\include\isc\commandline.h" />
|
||||
<ClInclude Include="..\include\isc\counter.h" />
|
||||
<ClInclude Include="..\include\isc\crc64.h" />
|
||||
|
|
@ -383,7 +382,6 @@ copy InstallFiles ..\Build\Release\
|
|||
<ClCompile Include="..\base64.c" />
|
||||
<ClCompile Include="..\bind9.c" />
|
||||
<ClCompile Include="..\buffer.c" />
|
||||
<ClCompile Include="..\bufferlist.c" />
|
||||
<ClCompile Include="..\commandline.c" />
|
||||
<ClCompile Include="..\counter.c" />
|
||||
<ClCompile Include="..\crc64.c" />
|
||||
|
|
|
|||
|
|
@ -1759,7 +1759,6 @@
|
|||
./lib/isc/base64.c C 1998,1999,2000,2001,2003,2004,2005,2007,2009,2013,2014,2015,2016,2018,2019,2020
|
||||
./lib/isc/bind9.c C 2013,2016,2018,2019,2020
|
||||
./lib/isc/buffer.c C 1998,1999,2000,2001,2002,2004,2005,2006,2007,2008,2012,2014,2015,2016,2017,2018,2019,2020
|
||||
./lib/isc/bufferlist.c C 1999,2000,2001,2004,2005,2007,2016,2018,2019,2020
|
||||
./lib/isc/commandline.c C.PORTION 1999,2000,2001,2004,2005,2007,2008,2014,2015,2016,2018,2019,2020
|
||||
./lib/isc/counter.c C 2014,2016,2018,2019,2020
|
||||
./lib/isc/crc64.c C 2013,2016,2018,2019,2020
|
||||
|
|
@ -1788,7 +1787,6 @@
|
|||
./lib/isc/include/isc/base64.h C 1999,2000,2001,2004,2005,2006,2007,2016,2018,2019,2020
|
||||
./lib/isc/include/isc/bind9.h C 2009,2013,2016,2018,2019,2020
|
||||
./lib/isc/include/isc/buffer.h C 1998,1999,2000,2001,2002,2004,2005,2006,2007,2008,2010,2012,2014,2016,2017,2018,2019,2020
|
||||
./lib/isc/include/isc/bufferlist.h C 1999,2000,2001,2004,2005,2006,2007,2016,2018,2019,2020
|
||||
./lib/isc/include/isc/cmocka.h C 2020
|
||||
./lib/isc/include/isc/commandline.h C 1999,2000,2001,2004,2005,2006,2007,2015,2016,2018,2019,2020
|
||||
./lib/isc/include/isc/counter.h C 2014,2016,2018,2019,2020
|
||||
|
|
|
|||
Loading…
Reference in a new issue