1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 17:17:31 +00:00

dead code removal

This commit is contained in:
Mitchell Livingston 2009-09-28 04:29:38 +00:00
parent fbecc713a6
commit 5ea8b6a77a
2 changed files with 0 additions and 78 deletions

View file

@ -132,16 +132,6 @@
- (uint64_t) size;
- (uint64_t) sizeLeft;
/*- (NSString *) trackerAddressAnnounce;
- (NSDate *) lastAnnounceTime;
- (NSInteger) nextAnnounceTime;
- (NSString *) announceResponse;
- (NSString *) trackerAddressScrape;
- (NSDate *) lastScrapeTime;
- (NSInteger) nextScrapeTime;
- (NSString *) scrapeResponse;*/
- (NSArray *) allTrackerStats;
- (NSArray *) allTrackersFlat; //used by GroupRules
/*- (BOOL) updateAllTrackersForAdd: (NSMutableArray *) trackers;

View file

@ -672,74 +672,6 @@ int trashDataFile(const char * filename)
return fStat->leftUntilDone;
}
/*- (NSString *) trackerAddressAnnounce
{
#warning fix
return @"fix me!";
//return fStat->announceURL ? [NSString stringWithUTF8String: fStat->announceURL] : nil;
}
- (NSDate *) lastAnnounceTime
{
NSInteger date = fStat->lastAnnounceTime;
return date > 0 ? [NSDate dateWithTimeIntervalSince1970: date] : nil;
}
- (NSInteger) nextAnnounceTime
{
NSInteger date = fStat->nextAnnounceTime;
NSTimeInterval difference;
switch (date)
{
case 0:
return STAT_TIME_NONE;
case 1:
return STAT_TIME_NOW;
default:
difference = [[NSDate dateWithTimeIntervalSince1970: date] timeIntervalSinceNow];
return difference > 0 ? (NSInteger)difference : STAT_TIME_NONE;
}
}
- (NSString *) announceResponse
{
return [NSString stringWithUTF8String: fStat->announceResponse];
}
- (NSString *) trackerAddressScrape
{
#warning fix
return @"fix me!";
//return fStat->scrapeURL ? [NSString stringWithUTF8String: fStat->scrapeURL] : nil;
}
- (NSDate *) lastScrapeTime
{
NSInteger date = fStat->lastScrapeTime;
return date > 0 ? [NSDate dateWithTimeIntervalSince1970: date] : nil;
}
- (NSInteger) nextScrapeTime
{
NSInteger date = fStat->nextScrapeTime;
NSTimeInterval difference;
switch (date)
{
case 0:
return STAT_TIME_NONE;
case 1:
return STAT_TIME_NOW;
default:
difference = [[NSDate dateWithTimeIntervalSince1970: date] timeIntervalSinceNow];
return difference > 0 ? (NSInteger)difference : STAT_TIME_NONE;
}
}
- (NSString *) scrapeResponse
{
return [NSString stringWithUTF8String: fStat->scrapeResponse];
}*/
- (NSArray *) allTrackerStats
{
int count;