Changeset 5099


Ignore:
Timestamp:
Feb 24, 2008, 3:16:13 PM (14 years ago)
Author:
livings124
Message:

dead code removal

Location:
trunk/macosx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/NSStringAdditions.m

    r5092 r5099  
    110110+ (NSString *) timeString: (uint64_t) seconds showSeconds: (BOOL) showSeconds maxDigits: (NSUInteger) max
    111111{
    112     NSMutableArray * timeArray = [NSMutableArray arrayWithCapacity: 3];
     112    NSMutableArray * timeArray = [NSMutableArray arrayWithCapacity: MIN(max, 4)];
    113113    uint64_t remaining = seconds;
    114114   
    115     if (seconds >= 86400) //24 * 60 * 60
     115    if (max > 0 && seconds >= 86400) //24 * 60 * 60
    116116    {
    117117        int days = remaining / 86400;
  • trunk/macosx/Torrent.h

    r5091 r5099  
    147147- (NSDate *) lastAnnounceTime;
    148148- (int) nextAnnounceTime;
    149 - (int) manualAnnounceTime;
    150149- (NSString *) announceResponse;
    151150
  • trunk/macosx/Torrent.m

    r5092 r5099  
    705705}
    706706
    707 - (int) manualAnnounceTime
    708 {
    709     return 666;
    710 }
    711 
    712707- (NSString *) announceResponse
    713708{
Note: See TracChangeset for help on using the changeset viewer.