Ignore:
Timestamp:
May 27, 2008, 5:47:39 PM (14 years ago)
Author:
charles
Message:

remove dead code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/tr-torrent.c

    r5880 r5947  
    4141   tr_torrent * handle;
    4242   gboolean do_remove;
    43    gboolean seeding_cap_enabled;
    44    gdouble seeding_cap; /* ratio to stop seeding at */
    4543};
    4644
     
    5654                                                  struct TrTorrentPrivate );
    5755    p->handle = NULL;
    58     p->seeding_cap = 2.0;
    5956
    6057#ifdef REFDBG
     
    146143}
    147144
    148 void
    149 tr_torrent_start( TrTorrent * self )
    150 {
    151     tr_torrent * handle = tr_torrent_handle( self );
    152     if( handle )
    153         tr_torrentStart( handle );
    154 }
    155 
    156 void
    157 tr_torrent_stop( TrTorrent * self )
    158 {
    159     tr_torrent * handle = tr_torrent_handle( self );
    160     if( handle )
    161         tr_torrentStop( handle );
    162 }
    163 
    164 
    165145static gboolean
    166146notifyInMainThread( gpointer user_data )
     
    239219}
    240220
    241 void
    242 tr_torrent_check_seeding_cap ( TrTorrent *gtor)
    243 {
    244   const tr_stat * st = tr_torrent_stat( gtor );
    245   if ((gtor->priv->seeding_cap_enabled) && (st->ratio >= gtor->priv->seeding_cap))
    246     tr_torrent_stop (gtor);
    247 }
    248 void
    249 tr_torrent_set_seeding_cap_ratio ( TrTorrent *gtor, gdouble ratio )
    250 {
    251   gtor->priv->seeding_cap = ratio;
    252   tr_torrent_check_seeding_cap (gtor);
    253 }
    254 void
    255 tr_torrent_set_seeding_cap_enabled ( TrTorrent *gtor, gboolean b )
    256 {
    257   if ((gtor->priv->seeding_cap_enabled = b))
    258     tr_torrent_check_seeding_cap (gtor);
    259 }
    260 
    261221char *
    262222tr_torrent_status_str ( TrTorrent * gtor )
Note: See TracChangeset for help on using the changeset viewer.