Changeset 3501


Ignore:
Timestamp:
Oct 22, 2007, 11:27:47 PM (14 years ago)
Author:
charles
Message:

dead code removal.

Location:
trunk/libtransmission
Files:
3 edited

Legend:

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

    r3365 r3501  
    3333struct tr_extensions
    3434{
    35     unsigned int azureusProtocolSupported : 1;
    3635    unsigned int extendedProtocolSupported : 1;
    3736    unsigned int fastPeersSupported : 1;
     
    355354
    356355void
    357 tr_peerIoEnableAZMP( tr_peerIo * io, int flag )
    358 {
    359     assert( io != NULL );
    360     assert( flag==0 || flag==1 );
    361    
    362     io->extensions.azureusProtocolSupported = flag;
    363 }
    364 
    365 void
    366356tr_peerIoEnableLTEP( tr_peerIo * io, int flag )
    367357{
     
    379369   
    380370    io->extensions.fastPeersSupported = flag;
    381 }
    382 
    383 int
    384 tr_peerIoSupportsAZMP( const tr_peerIo * io )
    385 {
    386     assert( io != NULL );
    387    
    388     return io->extensions.azureusProtocolSupported;
    389371}
    390372
  • trunk/libtransmission/peer-io.h

    r3365 r3501  
    5050**/
    5151
    52 void  tr_peerIoEnableAZMP( tr_peerIo * io, int flag );
    5352void  tr_peerIoEnableLTEP( tr_peerIo * io, int flag );
    5453void  tr_peerIoEnableFEXT( tr_peerIo * io, int flag );
    5554
    56 int   tr_peerIoSupportsAZMP( const tr_peerIo * io );
    5755int   tr_peerIoSupportsLTEP( const tr_peerIo * io );
    5856int   tr_peerIoSupportsFEXT( const tr_peerIo * io );
  • trunk/libtransmission/peer-msgs.c

    r3500 r3501  
    16691669    ratePulse( m );
    16701670
    1671     /**
    1672     ***  If we initiated this connection,
    1673     ***  we may need to send LTEP/AZMP handshakes.
    1674     ***  Otherwise we'll wait for the peer to send theirs first.
    1675     **/
    1676     if( !tr_peerIoIsIncoming( m->io ) )
    1677     {
    1678         if ( tr_peerIoSupportsLTEP( m->io ) ) {
    1679             sendLtepHandshake( m );
    1680            
    1681         } else if ( tr_peerIoSupportsAZMP( m->io ) ) {
    1682             dbgmsg( m, "FIXME: need to send AZMP handshake" );
    1683            
    1684         } else {
    1685             /* no-op */
    1686         }
    1687     }
    1688    
    1689     if ( tr_peerIoSupportsFEXT( m->io ) )
    1690     {
     1671    if ( tr_peerIoSupportsLTEP( m->io ) )
     1672        sendLtepHandshake( m );
     1673
     1674    if ( !tr_peerIoSupportsFEXT( m->io ) )
     1675        sendBitfield( m );
     1676    else {
    16911677        /* This peer is fastpeer-enabled, send it have-all or have-none if appropriate */
    16921678        float completion = tr_cpPercentComplete( m->torrent->completion );
     
    17021688        if ( peerProgress < MAX_ALLOWED_SET_COUNT )
    17031689            sendFastAllowedSet( m );
    1704     } else {
    1705         sendBitfield( m );
    1706     }
     1690    }
     1691
    17071692    return m;
    17081693}
Note: See TracChangeset for help on using the changeset viewer.