Ignore:
Timestamp:
Mar 10, 2010, 3:55:00 PM (12 years ago)
Author:
charles
Message:

(trunk libT) code cleanup: after r10346, we don't need to keep the per-torrent cancel/block histories anymore

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r10332 r10347  
    611611    static int nextUniqueId = 1;
    612612    tr_session * session = tr_ctorGetSession( ctor );
    613     const int sec = TORRENT_DOWNLOAD_CONGESTION_HISTORY_SEC;
    614613
    615614    assert( session != NULL );
     
    620619    tor->uniqueId = nextUniqueId++;
    621620    tor->magicNumber = TORRENT_MAGIC_NUMBER;
    622 
    623     tor->blocksSentToClient  = tr_historyNew( sec, 1 );
    624     tor->blocksSentToPeer    = tr_historyNew( sec, 1 );
    625     tor->cancelsSentToClient = tr_historyNew( sec, 1 );
    626     tor->cancelsSentToPeer   = tr_historyNew( sec, 1 );
    627621
    628622    tr_sha1( tor->obfuscatedHash, "req2", 4,
     
    12971291
    12981292    tr_bitfieldDestruct( &tor->checkedPieces );
    1299 
    1300     tr_historyFree( tor->blocksSentToClient  );
    1301     tr_historyFree( tor->blocksSentToPeer    );
    1302     tr_historyFree( tor->cancelsSentToClient );
    1303     tr_historyFree( tor->cancelsSentToPeer   );
    13041293
    13051294    tr_free( tor->downloadDir );
Note: See TracChangeset for help on using the changeset viewer.