From c32491ab3a1bc2b20db23548885ae9729204e530 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 22 Aug 2008 15:33:55 +0000 Subject: [PATCH] (libT) remove a little more dead code --- libtransmission/peer-mgr.c | 2 +- libtransmission/utils.h | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/libtransmission/peer-mgr.c b/libtransmission/peer-mgr.c index 31d604d08..1a3678428 100644 --- a/libtransmission/peer-mgr.c +++ b/libtransmission/peer-mgr.c @@ -434,7 +434,7 @@ tr_peerMgrGenerateAllowedSet( const uint32_t k, /* number of pie { uint8_t w[SHA_DIGEST_LENGTH + 4]; uint8_t x[SHA_DIGEST_LENGTH]; - tr_bitfield_t * a; + tr_bitfield * a; uint32_t a_size; *(uint32_t*)w = ntohl( htonl(ip->s_addr) & 0xffffff00 ); /* (1) */ diff --git a/libtransmission/utils.h b/libtransmission/utils.h index df81315d2..50b5e8f73 100644 --- a/libtransmission/utils.h +++ b/libtransmission/utils.h @@ -243,7 +243,6 @@ struct tr_bitfield }; typedef struct tr_bitfield tr_bitfield; -typedef struct tr_bitfield tr_bitfield_t; tr_bitfield* tr_bitfieldNew( size_t bitcount ) TR_GNUC_MALLOC; tr_bitfield* tr_bitfieldDup( const tr_bitfield* ) TR_GNUC_MALLOC; @@ -261,16 +260,6 @@ size_t tr_bitfieldCountTrueBits( const tr_bitfield* ); tr_bitfield* tr_bitfieldOr( tr_bitfield*, const tr_bitfield* ); -#if 0 -/** @brief finds the first true bit in the bitfield, starting at `startPos' - @param setmePos the position of the true bit, if found, is set here. - @return nonzero if a true bit was found */ -int tr_bitfieldFindTrue( const tr_bitfield * bitfield, - size_t startPos, - size_t * setmePos ); -#endif - - /** A stripped-down version of bitfieldHas to be used for speed when you're looping quickly. This version has none of tr_bitfieldHas()'s safety checks, so you -- 2.40.0