get rid of lock that apparently doesn't work
This commit is contained in:
parent
a19989c544
commit
d24a638e07
|
@ -36,8 +36,6 @@
|
|||
NSDictionary * fAttributes;
|
||||
int fCompleted;
|
||||
BOOL fSpeedBadge;
|
||||
|
||||
NSLock * fLock;
|
||||
}
|
||||
|
||||
- (id) initWithLib: (tr_handle_t *) lib;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue