mirror of
https://github.com/transmission/transmission
synced 2025-03-09 21:54:09 +00:00
remove dead code tr_stat::cpStatus
This commit is contained in:
parent
caee274e6e
commit
159f1de576
3 changed files with 2 additions and 3 deletions
|
@ -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 */
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -630,7 +630,6 @@ torrent_status_t;
|
|||
struct tr_stat
|
||||
{
|
||||
torrent_status_t status;
|
||||
cp_status_t cpStatus;
|
||||
|
||||
int error;
|
||||
char errorString[128];
|
||||
|
|
Loading…
Add table
Reference in a new issue