mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
remove unused variables
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32466 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d084034e84
commit
9be686a44a
1 changed files with 0 additions and 12 deletions
|
@ -794,8 +794,6 @@ static NSOperationQueue *mainQueue = nil;
|
|||
|
||||
- (void) setMaxConcurrentOperationCount: (NSInteger)cnt
|
||||
{
|
||||
BOOL unSuspend = NO;
|
||||
|
||||
if (cnt < 0
|
||||
&& cnt != NSOperationQueueDefaultMaxConcurrentOperationCount)
|
||||
{
|
||||
|
@ -806,10 +804,6 @@ static NSOperationQueue *mainQueue = nil;
|
|||
[internal->lock lock];
|
||||
if (cnt != internal->count)
|
||||
{
|
||||
if (cnt > internal->count)
|
||||
{
|
||||
unSuspend = YES; // May need to add more threads.
|
||||
}
|
||||
[self willChangeValueForKey: @"maxConcurrentOperationCount"];
|
||||
internal->count = cnt;
|
||||
[self didChangeValueForKey: @"maxConcurrentOperationCount"];
|
||||
|
@ -834,15 +828,9 @@ static NSOperationQueue *mainQueue = nil;
|
|||
|
||||
- (void) setSuspended: (BOOL)flag
|
||||
{
|
||||
BOOL unSuspend = NO;
|
||||
|
||||
[internal->lock lock];
|
||||
if (flag != internal->suspended)
|
||||
{
|
||||
if (YES == flag)
|
||||
{
|
||||
unSuspend = YES;
|
||||
}
|
||||
[self willChangeValueForKey: @"suspended"];
|
||||
internal->suspended = flag;
|
||||
[self didChangeValueForKey: @"suspended"];
|
||||
|
|
Loading…
Reference in a new issue