Changeset 5199


Ignore:
Timestamp:
Mar 4, 2008, 8:37:24 PM (14 years ago)
Author:
charles
Message:

remove unused code in the peer-msgs module

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-msgs.c

    r5193 r5199  
    286286    time_t clientSentPexAt;
    287287    time_t clientSentAnythingAt;
    288     time_t clientSentPieceDataAt;
    289     time_t peerSentPieceDataAt;
    290288   
    291289    tr_bitfield * clientAllowedPieces;
     
    12111209    tor->activityDate = tr_date( );
    12121210    tor->downloadedCur += byteCount;
    1213     msgs->peerSentPieceDataAt = now;
    12141211    msgs->info->pieceDataActivityDate = now;
    12151212    msgs->info->credit += (int)(byteCount * SWIFT_REPAYMENT_RATIO);
     
    14441441    tor->activityDate = tr_date( );
    14451442    tor->uploadedCur += byteCount;
    1446     msgs->clientSentPieceDataAt = now;
    14471443    msgs->info->pieceDataActivityDate = now;
    14481444    msgs->info->credit -= byteCount;
     
    20432039    tr_publisherUnsubscribe( peer->publisher, tag );
    20442040}
    2045 
    2046 int
    2047 tr_peerMsgsIsPieceFastAllowed( const tr_peermsgs * peer,
    2048                                uint32_t            index )
    2049 {
    2050     return tr_bitfieldHas( peer->clientAllowedPieces, index );
    2051 }
    2052 
    2053 int
    2054 tr_peerMsgsIsPieceSuggested( const tr_peermsgs * peer,
    2055                              uint32_t            index )
    2056 {
    2057     return tr_bitfieldHas( peer->clientSuggestedPieces, index );
    2058 }
    2059 
  • trunk/libtransmission/peer-msgs.h

    r4734 r5199  
    9090                                           tr_publisher_tag    tag );
    9191
    92 int               tr_peerMsgsIsPieceFastAllowed( const tr_peermsgs * peer,
    93                                                  uint32_t            index );
    94 
    95 int               tr_peerMsgsIsPieceSuggested( const tr_peermsgs * peer,
    96                                               uint32_t            index );
    97 
    9892#endif
Note: See TracChangeset for help on using the changeset viewer.