Remove iOS7 API check

Reviewed By: shergin

Differential Revision: D4551186

fbshipit-source-id: ab5ec3c01bbfe0faca833960431a9739cbc1ea44
This commit is contained in:
Pieter De Baets 2017-02-13 12:06:17 -08:00 committed by Facebook Github Bot
parent 7686274e13
commit 4695508826
1 changed files with 1 additions and 5 deletions

View File

@ -217,11 +217,7 @@ static NSThread *newJavaScriptThread(void)
selector:@selector(runRunLoopThread) selector:@selector(runRunLoopThread)
object:nil]; object:nil];
javaScriptThread.name = RCTJSCThreadName; javaScriptThread.name = RCTJSCThreadName;
if ([javaScriptThread respondsToSelector:@selector(setQualityOfService:)]) { javaScriptThread.qualityOfService = NSOperationQualityOfServiceUserInteractive;
[javaScriptThread setQualityOfService:NSOperationQualityOfServiceUserInteractive];
} else {
javaScriptThread.threadPriority = [NSThread mainThread].threadPriority;
}
[javaScriptThread start]; [javaScriptThread start];
return javaScriptThread; return javaScriptThread;
} }