get rid of lock that apparently doesn't work

This commit is contained in:
Mitchell Livingston 2007-05-23 04:41:25 +00:00
parent a19989c544
commit d24a638e07
3 changed files with 1 additions and 10 deletions

View File

@ -36,8 +36,6 @@
NSDictionary * fAttributes;
int fCompleted;
BOOL fSpeedBadge;
NSLock * fLock;
}
- (id) initWithLib: (tr_handle_t *) lib;

View File

@ -59,8 +59,6 @@
fCompleted = 0;
fSpeedBadge = NO;
fLock = [[NSLock alloc] init];
}
return self;
@ -70,14 +68,11 @@
{
[fDockIcon release];
[fAttributes release];
[fLock release];
[super dealloc];
}
- (void) updateBadgeWithCompleted: (int) completed
{
[fLock lock];
//set completed badge to top right
BOOL baseChange;
if (baseChange = (fCompleted != completed))
@ -185,8 +180,6 @@
fSpeedBadge = speedChange;
}
[fLock unlock];
}
- (void) clearBadge

View File

@ -878,7 +878,7 @@
if ((useSecond = ![[descriptor key] isEqualToString: @"IP"]))
{
#warning different for different sorts
//NSLog(@"%@", [[fPeerTable highlightedTableColumn] identifier]);
//NSLog(@"%@", [fPeerTable highlightedTableColumn]);
asc = [descriptor ascending];
}