remove some nslogs
This commit is contained in:
parent
3ff4e7799a
commit
7d6137931f
|
@ -311,7 +311,6 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
|
||||||
{
|
{
|
||||||
[fTorrents addObject: torrent];
|
[fTorrents addObject: torrent];
|
||||||
[torrent release];
|
[torrent release];
|
||||||
NSLog(@"history restore: %u", (long)[torrent retainCount]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[history release];
|
[history release];
|
||||||
|
@ -545,18 +544,9 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
|
||||||
|
|
||||||
//save history and stop running torrents
|
//save history and stop running torrents
|
||||||
[self updateTorrentHistory];
|
[self updateTorrentHistory];
|
||||||
#warning check if all torrents are fully released
|
|
||||||
//Torrent * torrent = [fTorrents objectAtIndex: 0];
|
|
||||||
//NSLog(@"%d", (long)[torrent retainCount]);
|
|
||||||
[fDisplayedTorrents removeAllObjects];
|
[fDisplayedTorrents removeAllObjects];
|
||||||
|
|
||||||
enumerator = [fTorrents objectEnumerator];
|
|
||||||
//Torrent * torrent;
|
|
||||||
/*while ((torrent = [enumerator nextObject]))
|
|
||||||
[torrent endTorrent];*/
|
|
||||||
|
|
||||||
[fTorrents removeAllObjects];
|
[fTorrents removeAllObjects];
|
||||||
//NSLog(@"%d", (long)[torrent retainCount]);
|
|
||||||
//disable NAT traversal
|
//disable NAT traversal
|
||||||
tr_natTraversalEnable(fLib, 0);
|
tr_natTraversalEnable(fLib, 0);
|
||||||
|
|
||||||
|
@ -1124,9 +1114,9 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
|
||||||
currentOrderValue = [torrent orderValue];
|
currentOrderValue = [torrent orderValue];
|
||||||
if (!lowestOrderValue || [lowestOrderValue compare: currentOrderValue] == NSOrderedDescending)
|
if (!lowestOrderValue || [lowestOrderValue compare: currentOrderValue] == NSOrderedDescending)
|
||||||
lowestOrderValue = currentOrderValue;
|
lowestOrderValue = currentOrderValue;
|
||||||
NSLog(@"before");
|
|
||||||
[fTorrents removeObject: torrent];
|
[fTorrents removeObject: torrent];
|
||||||
[fDisplayedTorrents removeObject: torrent];NSLog(@"after");
|
[fDisplayedTorrents removeObject: torrent];
|
||||||
}
|
}
|
||||||
[torrents release];
|
[torrents release];
|
||||||
|
|
||||||
|
|
|
@ -630,6 +630,7 @@
|
||||||
return NO;
|
return NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#warning disable if all can't be checked
|
||||||
if (action == @selector(setOnlySelectedCheck:))
|
if (action == @selector(setOnlySelectedCheck:))
|
||||||
return [fFileOutline selectedRow] != -1;
|
return [fFileOutline selectedRow] != -1;
|
||||||
|
|
||||||
|
|
|
@ -190,8 +190,6 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
|
||||||
|
|
||||||
- (void) dealloc
|
- (void) dealloc
|
||||||
{
|
{
|
||||||
NSLog(@"Released!");
|
|
||||||
NSLog(@"%d", (long)[self retainCount]);
|
|
||||||
if (fHandle)
|
if (fHandle)
|
||||||
{
|
{
|
||||||
tr_torrentClose(fHandle);
|
tr_torrentClose(fHandle);
|
||||||
|
@ -1477,7 +1475,6 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
|
||||||
if (!(self = [super init]))
|
if (!(self = [super init]))
|
||||||
return nil;
|
return nil;
|
||||||
|
|
||||||
NSLog(@"init %d", (long)[self retainCount]);
|
|
||||||
static_lastid++;
|
static_lastid++;
|
||||||
fID = static_lastid;
|
fID = static_lastid;
|
||||||
|
|
||||||
|
@ -1587,9 +1584,8 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < MAX_PIECES; i++)
|
for (i = 0; i < MAX_PIECES; i++)
|
||||||
fPieces[i] = BLANK_PIECE;
|
fPieces[i] = BLANK_PIECE;
|
||||||
NSLog(@"end1 %d", (long)[self retainCount]);
|
|
||||||
[self update];
|
[self update];
|
||||||
NSLog(@"end2 %d", (long)[self retainCount]);
|
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue