Ignore:
Timestamp:
May 22, 2008, 11:11:21 PM (14 years ago)
Author:
charles
Message:

more cleanup work:
(1) kill the pointless "tr_tracker_stat" struct.
(2) kill the unused "tr_torrentRemoveSaved()" function.
(3) kill the redundant "nextManualAnnounceTime" variable.
(4) make the TR_ERROR_IS_* macros private.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Torrent.m

    r5910 r5911  
    729729- (NSDate *) lastAnnounceTime
    730730{
    731     int date = fStat->trackerStat.lastAnnounceTime;
     731    int date = fStat->lastAnnounceTime;
    732732    return date > 0 ? [NSDate dateWithTimeIntervalSince1970: date] : nil;
    733733}
     
    735735- (int) nextAnnounceTime
    736736{
    737     int date = fStat->trackerStat.nextAnnounceTime;
     737    int date = fStat->nextAnnounceTime;
    738738    if (date <= 0)
    739739        return -1;
     
    745745- (NSString *) announceResponse
    746746{
    747     return [NSString stringWithUTF8String: fStat->trackerStat.announceResponse];
     747    return [NSString stringWithUTF8String: fStat->announceResponse];
    748748}
    749749
     
    755755- (NSDate *) lastScrapeTime
    756756{
    757     int date = fStat->trackerStat.lastScrapeTime;
     757    int date = fStat->lastScrapeTime;
    758758    return date > 0 ? [NSDate dateWithTimeIntervalSince1970: date] : nil;
    759759}
     
    761761- (int) nextScrapeTime
    762762{
    763     int date = fStat->trackerStat.nextScrapeTime;
     763    int date = fStat->nextScrapeTime;
    764764    if (date <= 0)
    765765        return -1;
     
    771771- (NSString *) scrapeResponse
    772772{
    773     return [NSString stringWithUTF8String: fStat->trackerStat.scrapeResponse];
     773    return [NSString stringWithUTF8String: fStat->scrapeResponse];
    774774}
    775775
Note: See TracChangeset for help on using the changeset viewer.