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

dead code removal

File:
1 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;
Note: See TracChangeset for help on using the changeset viewer.