Changeset 3484


Ignore:
Timestamp:
Oct 20, 2007, 9:17:37 PM (15 years ago)
Author:
charles
Message:

Dead code removal (TR_STATUS_STOPPING)

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/cli/transmissioncli.c

    r3468 r3484  
    314314                s->rateUpload, getStringRatio(s->ratio) );
    315315        }
    316         else if( s->status & TR_STATUS_STOPPING )
    317         {
    318             chars = snprintf( string, sizeof string, "Stopping..." );
    319         }
    320316        else if( s->status & TR_STATUS_INACTIVE )
    321317        {
  • trunk/gtk/tr_torrent.c

    r3460 r3484  
    332332            break;
    333333
    334         case TR_STATUS_STOPPING:
    335             top = g_strdup( _("Stopping...") );
    336             break;
    337 
    338334        case TR_STATUS_STOPPED:
    339335            top = g_strdup_printf( _("Stopped (%.1f%%)"), prog );
  • trunk/libtransmission/ipcparse.c

    r3426 r3484  
    879879                    tr_bencInitStr( item, "seeding", -1, 1 );
    880880                }
    881                 else if( TR_STATUS_STOPPING & st->status )
    882                 {
    883                     tr_bencInitStr( item, "stopping", -1, 1 );
    884                 }
    885881                else if( TR_STATUS_INACTIVE & st->status )
    886882                {
  • trunk/libtransmission/transmission.h

    r3482 r3484  
    607607                                        there's nothing we want right now */
    608608    TR_STATUS_SEED         = (1<<4), /* Seeding */
    609     TR_STATUS_STOPPING     = (1<<5), /* Stopping -- closing connections, etc. */
    610     TR_STATUS_STOPPED      = (1<<6)  /* Torrent is stopped */
     609    TR_STATUS_STOPPED      = (1<<5)  /* Torrent is stopped */
    611610}
    612611tr_torrent_status;
     
    615614    (TR_STATUS_CHECK_WAIT|TR_STATUS_CHECK|TR_STATUS_DOWNLOAD|TR_STATUS_DONE|TR_STATUS_SEED)
    616615#define TR_STATUS_INACTIVE \
    617     (TR_STATUS_STOPPING|TR_STATUS_STOPPED)
     616    (TR_STATUS_STOPPED)
    618617
    619618/***********************************************************************
Note: See TracChangeset for help on using the changeset viewer.