remove some nslogs

This commit is contained in:
Mitchell Livingston 2007-06-29 01:59:14 +00:00
parent 3ff4e7799a
commit 7d6137931f
3 changed files with 5 additions and 18 deletions

View File

@ -311,7 +311,6 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
{
[fTorrents addObject: torrent];
[torrent release];
NSLog(@"history restore: %u", (long)[torrent retainCount]);
}
[history release];
@ -545,18 +544,9 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
//save history and stop running torrents
[self updateTorrentHistory];
#warning check if all torrents are fully released
//Torrent * torrent = [fTorrents objectAtIndex: 0];
//NSLog(@"%d", (long)[torrent retainCount]);
[fDisplayedTorrents removeAllObjects];
enumerator = [fTorrents objectEnumerator];
//Torrent * torrent;
/*while ((torrent = [enumerator nextObject]))
[torrent endTorrent];*/
[fTorrents removeAllObjects];
//NSLog(@"%d", (long)[torrent retainCount]);
//disable NAT traversal
tr_natTraversalEnable(fLib, 0);
@ -1124,9 +1114,9 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
currentOrderValue = [torrent orderValue];
if (!lowestOrderValue || [lowestOrderValue compare: currentOrderValue] == NSOrderedDescending)
lowestOrderValue = currentOrderValue;
NSLog(@"before");
[fTorrents removeObject: torrent];
[fDisplayedTorrents removeObject: torrent];NSLog(@"after");
[fDisplayedTorrents removeObject: torrent];
}
[torrents release];

View File

@ -630,6 +630,7 @@
return NO;
}
#warning disable if all can't be checked
if (action == @selector(setOnlySelectedCheck:))
return [fFileOutline selectedRow] != -1;

View File

@ -190,8 +190,6 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
- (void) dealloc
{
NSLog(@"Released!");
NSLog(@"%d", (long)[self retainCount]);
if (fHandle)
{
tr_torrentClose(fHandle);
@ -1477,7 +1475,6 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
if (!(self = [super init]))
return nil;
NSLog(@"init %d", (long)[self retainCount]);
static_lastid++;
fID = static_lastid;
@ -1587,9 +1584,8 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
int i;
for (i = 0; i < MAX_PIECES; i++)
fPieces[i] = BLANK_PIECE;
NSLog(@"end1 %d", (long)[self retainCount]);
[self update];
NSLog(@"end2 %d", (long)[self retainCount]);
return self;
}