diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-02-23 06:22:47 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-02-23 06:22:47 +0000 |
commit | f52ee738bccf323e0d06af49572e532640358ab1 (patch) | |
tree | 89286e52aa52d5b8236367296daa083cf18189e3 | |
parent | a36d4b836f49bc739779b9e4f8148c9383def74b (diff) |
remove unused structs
-rw-r--r-- | usr.bin/dig/lib/isc/hash.c | 23 | ||||
-rw-r--r-- | usr.bin/dig/lib/isc/include/isc/region.h | 15 |
2 files changed, 2 insertions, 36 deletions
diff --git a/usr.bin/dig/lib/isc/hash.c b/usr.bin/dig/lib/isc/hash.c index f49ac117bda..581a1eb8a4f 100644 --- a/usr.bin/dig/lib/isc/hash.c +++ b/usr.bin/dig/lib/isc/hash.c @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: hash.c,v 1.4 2020/02/22 19:51:03 jung Exp $ */ +/* $Id: hash.c,v 1.5 2020/02/23 06:22:46 jsg Exp $ */ /*! \file * Some portion of this code was derived from universal hash function @@ -55,32 +55,11 @@ or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage. */ - #include <stdlib.h> #include <isc/hash.h> -#include <isc/refcount.h> -#include <string.h> #include <isc/util.h> -/*@{*/ -/*% - * Types of random seed and hash accumulator. Perhaps they can be system - * dependent. - */ -typedef uint32_t hash_accum_t; -typedef uint16_t hash_random_t; -/*@}*/ - -/*% isc hash structure */ -struct isc_hash { - isc_boolean_t initialized; - isc_refcount_t refcnt; - size_t limit; /*%< upper limit of key length */ - size_t vectorlen; /*%< size of the vector below */ - hash_random_t *rndvector; /*%< random vector for universal hashing */ -}; - static unsigned char maptolower[] = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, diff --git a/usr.bin/dig/lib/isc/include/isc/region.h b/usr.bin/dig/lib/isc/include/isc/region.h index bfa9abe3d22..1f1d4ca7bfd 100644 --- a/usr.bin/dig/lib/isc/include/isc/region.h +++ b/usr.bin/dig/lib/isc/include/isc/region.h @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: region.h,v 1.2 2020/02/13 13:53:01 jsg Exp $ */ +/* $Id: region.h,v 1.3 2020/02/23 06:22:46 jsg Exp $ */ #ifndef ISC_REGION_H #define ISC_REGION_H 1 @@ -33,19 +33,6 @@ struct isc_textregion { unsigned int length; }; -/* XXXDCL questionable ... bears discussion. we have been putting off - * discussing the region api. - */ -struct isc_constregion { - const void * base; - unsigned int length; -}; - -struct isc_consttextregion { - const char * base; - unsigned int length; -}; - /*@{*/ /*! * The region structure is not opaque, and is usually directly manipulated. |