remove dead code
This commit is contained in:
parent
07f2e6365a
commit
56b71bd144
|
@ -66,18 +66,12 @@ typedef uint64_t tr_time_t;
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
/* deprecated */
|
|
||||||
FR_ID_PROGRESS_SLOTS = 1,
|
|
||||||
|
|
||||||
/* number of bytes downloaded */
|
/* number of bytes downloaded */
|
||||||
FR_ID_DOWNLOADED = 2,
|
FR_ID_DOWNLOADED = 2,
|
||||||
|
|
||||||
/* number of bytes uploaded */
|
/* number of bytes uploaded */
|
||||||
FR_ID_UPLOADED = 3,
|
FR_ID_UPLOADED = 3,
|
||||||
|
|
||||||
/* IPs and ports of connectable peers */
|
|
||||||
FR_ID_PEERS_OLD = 4,
|
|
||||||
|
|
||||||
/* progress data:
|
/* progress data:
|
||||||
* - 4 bytes * number of files: mtimes of files
|
* - 4 bytes * number of files: mtimes of files
|
||||||
* - 1 bit * number of blocks: whether we have the block or not */
|
* - 1 bit * number of blocks: whether we have the block or not */
|
||||||
|
@ -342,10 +336,8 @@ internalIdToPublicBitfield( uint8_t id )
|
||||||
|
|
||||||
switch( id )
|
switch( id )
|
||||||
{
|
{
|
||||||
case FR_ID_PROGRESS_SLOTS: ret = 0; break;
|
|
||||||
case FR_ID_DOWNLOADED: ret = TR_FR_DOWNLOADED; break;
|
case FR_ID_DOWNLOADED: ret = TR_FR_DOWNLOADED; break;
|
||||||
case FR_ID_UPLOADED: ret = TR_FR_UPLOADED; break;
|
case FR_ID_UPLOADED: ret = TR_FR_UPLOADED; break;
|
||||||
case FR_ID_PEERS_OLD: ret = TR_FR_PEERS; break;
|
|
||||||
case FR_ID_PROGRESS: ret = TR_FR_PROGRESS; break;
|
case FR_ID_PROGRESS: ret = TR_FR_PROGRESS; break;
|
||||||
case FR_ID_PRIORITY: ret = TR_FR_PRIORITY; break;
|
case FR_ID_PRIORITY: ret = TR_FR_PRIORITY; break;
|
||||||
case FR_ID_SPEED: ret = TR_FR_SPEEDLIMIT; break;
|
case FR_ID_SPEED: ret = TR_FR_SPEEDLIMIT; break;
|
||||||
|
|
Loading…
Reference in New Issue