mirror of
https://github.com/transmission/transmission
synced 2025-03-09 05:14:09 +00:00
(libT) remove a little more dead code
This commit is contained in:
parent
f8d38a180e
commit
c32491ab3a
2 changed files with 1 additions and 12 deletions
|
@ -434,7 +434,7 @@ tr_peerMgrGenerateAllowedSet( const uint32_t k, /* number of pie
|
||||||
{
|
{
|
||||||
uint8_t w[SHA_DIGEST_LENGTH + 4];
|
uint8_t w[SHA_DIGEST_LENGTH + 4];
|
||||||
uint8_t x[SHA_DIGEST_LENGTH];
|
uint8_t x[SHA_DIGEST_LENGTH];
|
||||||
tr_bitfield_t * a;
|
tr_bitfield * a;
|
||||||
uint32_t a_size;
|
uint32_t a_size;
|
||||||
|
|
||||||
*(uint32_t*)w = ntohl( htonl(ip->s_addr) & 0xffffff00 ); /* (1) */
|
*(uint32_t*)w = ntohl( htonl(ip->s_addr) & 0xffffff00 ); /* (1) */
|
||||||
|
|
|
@ -243,7 +243,6 @@ struct tr_bitfield
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct tr_bitfield 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_bitfieldNew( size_t bitcount ) TR_GNUC_MALLOC;
|
||||||
tr_bitfield* tr_bitfieldDup( const tr_bitfield* ) 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* );
|
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
|
/** A stripped-down version of bitfieldHas to be used
|
||||||
for speed when you're looping quickly. This version
|
for speed when you're looping quickly. This version
|
||||||
has none of tr_bitfieldHas()'s safety checks, so you
|
has none of tr_bitfieldHas()'s safety checks, so you
|
||||||
|
|
Loading…
Add table
Reference in a new issue