remove dead code tr_stat::cpStatus
This commit is contained in:
parent
caee274e6e
commit
159f1de576
|
@ -68,6 +68,8 @@ readOrWriteBytes ( const tr_torrent * tor,
|
||||||
|
|
||||||
tr_buildPath ( path, sizeof(path), tor->destination, file->name, NULL );
|
tr_buildPath ( path, sizeof(path), tor->destination, file->name, NULL );
|
||||||
|
|
||||||
|
fprintf( stderr, "readOrWriteBytes: [%s]\n", path );
|
||||||
|
|
||||||
if( !file->length )
|
if( !file->length )
|
||||||
return 0;
|
return 0;
|
||||||
else if ((ioMode==TR_IO_READ) && stat( path, &sb ) ) /* fast check to make sure file exists */
|
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
|
? 0.0
|
||||||
: 1.0 - ((double)tr_bitfieldCountTrueBits(tor->uncheckedPieces) / tor->info.pieceCount);
|
: 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
|
/* rcRate's averaging code can make it appear that we're
|
||||||
* still sending bytes after a torrent stops or all the
|
* still sending bytes after a torrent stops or all the
|
||||||
* peers disconnect, so short-circuit that appearance here */
|
* peers disconnect, so short-circuit that appearance here */
|
||||||
|
|
|
@ -630,7 +630,6 @@ torrent_status_t;
|
||||||
struct tr_stat
|
struct tr_stat
|
||||||
{
|
{
|
||||||
torrent_status_t status;
|
torrent_status_t status;
|
||||||
cp_status_t cpStatus;
|
|
||||||
|
|
||||||
int error;
|
int error;
|
||||||
char errorString[128];
|
char errorString[128];
|
||||||
|
|
Loading…
Reference in New Issue