1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-27 01:57:52 +00:00

(trunk libT) remove dead code.

This commit is contained in:
Charles Kerr 2010-02-08 13:59:13 +00:00
parent 9194325c95
commit d1b282b647

View file

@ -1574,20 +1574,6 @@ readBtMessage( tr_peermsgs * msgs, struct evbuffer * inbuf, size_t inlen )
return READ_NOW; return READ_NOW;
} }
static inline void
decrementDownloadedCount( tr_peermsgs * msgs, uint32_t byteCount )
{
tr_torrent * tor = msgs->torrent;
tor->downloadedCur -= MIN( tor->downloadedCur, byteCount );
}
static inline void
clientGotUnwantedBlock( tr_peermsgs * msgs, const struct peer_request * req )
{
decrementDownloadedCount( msgs, req->length );
}
static void static void
addPeerToBlamefield( tr_peermsgs * msgs, uint32_t index ) addPeerToBlamefield( tr_peermsgs * msgs, uint32_t index )
{ {