remove dead code tr_stat::cpStatus

This commit is contained in:
Charles Kerr 2007-10-15 18:28:49 +00:00
parent caee274e6e
commit 159f1de576
3 changed files with 2 additions and 3 deletions

View File

@ -68,6 +68,8 @@ readOrWriteBytes ( const tr_torrent * tor,
tr_buildPath ( path, sizeof(path), tor->destination, file->name, NULL );
fprintf( stderr, "readOrWriteBytes: [%s]\n", path );
if( !file->length )
return 0;
else if ((ioMode==TR_IO_READ) && stat( path, &sb ) ) /* fast check to make sure file exists */

View File

@ -731,8 +731,6 @@ tr_torrentStat( tr_torrent * tor )
? 0.0
: 1.0 - ((double)tr_bitfieldCountTrueBits(tor->uncheckedPieces) / tor->info.pieceCount);
s->cpStatus = tor->cpStatus;
/* rcRate's averaging code can make it appear that we're
* still sending bytes after a torrent stops or all the
* peers disconnect, so short-circuit that appearance here */

View File

@ -630,7 +630,6 @@ torrent_status_t;
struct tr_stat
{
torrent_status_t status;
cp_status_t cpStatus;
int error;
char errorString[128];