Ignore:
Timestamp:
Sep 28, 2009, 4:29:38 AM (13 years ago)
Author:
livings124
Message:

dead code removal

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Torrent.m

    r9191 r9204  
    672672    return fStat->leftUntilDone;
    673673}
    674 
    675 /*- (NSString *) trackerAddressAnnounce
    676 {
    677 #warning fix
    678     return @"fix me!";
    679     //return fStat->announceURL ? [NSString stringWithUTF8String: fStat->announceURL] : nil;
    680 }
    681 
    682 - (NSDate *) lastAnnounceTime
    683 {
    684     NSInteger date = fStat->lastAnnounceTime;
    685     return date > 0 ? [NSDate dateWithTimeIntervalSince1970: date] : nil;
    686 }
    687 
    688 - (NSInteger) nextAnnounceTime
    689 {
    690     NSInteger date = fStat->nextAnnounceTime;
    691     NSTimeInterval difference;
    692     switch (date)
    693     {
    694         case 0:
    695             return STAT_TIME_NONE;
    696         case 1:
    697             return STAT_TIME_NOW;
    698         default:
    699             difference = [[NSDate dateWithTimeIntervalSince1970: date] timeIntervalSinceNow];
    700             return difference > 0 ? (NSInteger)difference : STAT_TIME_NONE;
    701     }
    702 }
    703 
    704 - (NSString *) announceResponse
    705 {
    706     return [NSString stringWithUTF8String: fStat->announceResponse];
    707 }
    708 
    709 - (NSString *) trackerAddressScrape
    710 {
    711 #warning fix
    712     return @"fix me!";
    713     //return fStat->scrapeURL ? [NSString stringWithUTF8String: fStat->scrapeURL] : nil;
    714 }
    715 
    716 - (NSDate *) lastScrapeTime
    717 {
    718     NSInteger date = fStat->lastScrapeTime;
    719     return date > 0 ? [NSDate dateWithTimeIntervalSince1970: date] : nil;
    720 }
    721 
    722 - (NSInteger) nextScrapeTime
    723 {
    724     NSInteger date = fStat->nextScrapeTime;
    725     NSTimeInterval difference;
    726     switch (date)
    727     {
    728         case 0:
    729             return STAT_TIME_NONE;
    730         case 1:
    731             return STAT_TIME_NOW;
    732         default:
    733             difference = [[NSDate dateWithTimeIntervalSince1970: date] timeIntervalSinceNow];
    734             return difference > 0 ? (NSInteger)difference : STAT_TIME_NONE;
    735     }
    736 }
    737 
    738 - (NSString *) scrapeResponse
    739 {
    740     return [NSString stringWithUTF8String: fStat->scrapeResponse];
    741 }*/
    742674
    743675- (NSArray *) allTrackerStats
Note: See TracChangeset for help on using the changeset viewer.