Changeset 6857


Ignore:
Timestamp:
Oct 6, 2008, 7:44:38 PM (13 years ago)
Author:
charles
Message:

(libT) remove dead code

Location:
trunk/libtransmission
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-mgr.c

    r6850 r6857  
    3232#include "peer-msgs.h"
    3333#include "ptrarray.h"
    34 #include "ratecontrol.h"
    3534#include "stats.h" /* tr_statsAddDownloaded */
    3635#include "torrent.h"
  • trunk/libtransmission/ratecontrol.c

    r6795 r6857  
    4242struct tr_ratecontrol
    4343{
    44     int                   limit;
    4544    int                   newest;
    4645    struct tr_transfer    transfers[HISTORY_SIZE];
     
    7776tr_rcInit( void )
    7877{
    79     tr_ratecontrol * r = tr_new0( tr_ratecontrol, 1 );
    80 
    81     r->limit = 0;
    82     return r;
     78    return tr_new0( tr_ratecontrol, 1 );
    8379}
    8480
     
    124120    }
    125121}
    126 
    127 void
    128 tr_rcSetLimit( tr_ratecontrol * r,
    129                int              limit )
    130 {
    131     r->limit = limit;
    132 }
    133 
    134 int
    135 tr_rcGetLimit( const tr_ratecontrol * r )
    136 {
    137     return r->limit;
    138 }
    139 
  • trunk/libtransmission/ratecontrol.h

    r6795 r6857  
    3030tr_ratecontrol * tr_rcInit( void );
    3131
    32 void             tr_rcSetLimit( tr_ratecontrol *,
    33                                 int );
    34 
    35 int              tr_rcGetLimit( const tr_ratecontrol * );
    36 
    3732void             tr_rcTransferred(               tr_ratecontrol *,
    3833                                          size_t byteCount );
  • trunk/libtransmission/rpcimpl.c

    r6828 r6857  
    1818#include "transmission.h"
    1919#include "bencode.h"
    20 #include "ratecontrol.h"
    2120#include "rpcimpl.h"
    2221#include "json.h"
  • trunk/libtransmission/session.c

    r6825 r6857  
    3030#include "platform.h" /* tr_lock */
    3131#include "port-forwarding.h"
    32 #include "ratecontrol.h"
    3332#include "rpc-server.h"
    3433#include "stats.h"
Note: See TracChangeset for help on using the changeset viewer.