Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove redundant check for processorCount availability #604

Merged
merged 2 commits into from
Oct 12, 2015

Conversation

matthiaswenz
Copy link
Contributor

As pointed out in #597 the check whether processorCount is available is not necessary anymore since min version for OS X is 10.7 and all other platforms supported it from the start.

if ([processInfo respondsToSelector:@selector(processorCount)]) {
result = processInfo.processorCount;
}
NSUInteger result = [NSProcessInfo processInfo].processorCount;
_numProcessors = MAX(result, one);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could also use a 1 here directly.

rivera-ernesto added a commit that referenced this pull request Oct 12, 2015
Remove redundant check for processorCount availability
@rivera-ernesto rivera-ernesto merged commit 27ff468 into CocoaLumberjack:master Oct 12, 2015
@bpoplauschi bpoplauschi modified the milestones: 2.1.0 - Swift, 2.0.2 Oct 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants