remove test code

This commit is contained in:
Mitchell Livingston 2008-04-10 19:53:27 +00:00
parent 65b3856f61
commit c6b097422f
1 changed files with 1 additions and 2 deletions

View File

@ -548,7 +548,6 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void *
NSDictionary * systemAttributes = onLeopard ? [fileManager attributesOfFileSystemForPath: downloadFolder error: NULL]
: [fileManager fileSystemAttributesAtPath: downloadFolder];
uint64_t remainingSpace = [[systemAttributes objectForKey: NSFileSystemFreeSize] unsignedLongLongValue], neededSpace = 0;
remainingSpace=0;
//if the size left is less then remaining space, then there is enough space regardless of preallocation
if (remainingSpace < [self sizeLeft])
@ -579,7 +578,7 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void *
}
}
if (/*remainingSpace < neededSpace*/YES)
if (remainingSpace < neededSpace)
{
NSAlert * alert = [[NSAlert alloc] init];
[alert setMessageText: [NSString stringWithFormat: