Fixes unused result warnings

This commit is contained in:
Riley Testut 2016-07-13 02:37:16 -05:00
parent 1d7ce4b6e6
commit 279092ccc0
2 changed files with 5 additions and 5 deletions

View File

@ -27,7 +27,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate
semaphore.signal() semaphore.signal()
} }
semaphore.wait(timeout: DispatchTime.distantFuture) semaphore.wait()
// Controllers // Controllers
ExternalControllerManager.shared.startMonitoringExternalControllers() ExternalControllerManager.shared.startMonitoringExternalControllers()

View File

@ -306,12 +306,12 @@ private extension EmulationViewController
self.performSegue(withIdentifier: "pauseSegue", sender: sender) self.performSegue(withIdentifier: "pauseSegue", sender: sender)
} }
func pauseEmulation() -> Bool @discardableResult func pauseEmulation() -> Bool
{ {
return self.emulatorCore.pause() return self.emulatorCore.pause()
} }
func resumeEmulation() -> Bool @discardableResult func resumeEmulation() -> Bool
{ {
guard !self.choosingSustainedButtons && self.pauseViewController == nil else { return false } guard !self.choosingSustainedButtons && self.pauseViewController == nil else { return false }
@ -443,8 +443,8 @@ private extension EmulationViewController
// To ensure the emulator core recognizes us activating the input again, we need to wait at least two frames // To ensure the emulator core recognizes us activating the input again, we need to wait at least two frames
// Unfortunately we cannot init DispatchSemaphore with value less than 0 // Unfortunately we cannot init DispatchSemaphore with value less than 0
// To compensate, we simply wait twice; once the first wait returns, we wait again // To compensate, we simply wait twice; once the first wait returns, we wait again
semaphore.semaphore.wait(timeout: DispatchTime.distantFuture) semaphore.semaphore.wait()
semaphore.semaphore.wait(timeout: DispatchTime.distantFuture) semaphore.semaphore.wait()
// These MUST be performed serially, or else Bad Things Happen if multiple inputs are reactivated at once // These MUST be performed serially, or else Bad Things Happen if multiple inputs are reactivated at once
self.reactivateSustainInputsQueue.addOperation { self.reactivateSustainInputsQueue.addOperation {