compiler warning: discard result explicitly

pull/1/head
Michael Kirk 7 years ago
parent b79860ae0f
commit 24f97f1229

@ -128,7 +128,7 @@ public class ConversationMediaView: UIView {
animatedImageView.backgroundColor = Theme.offBackgroundColor animatedImageView.backgroundColor = Theme.offBackgroundColor
addSubview(animatedImageView) addSubview(animatedImageView)
animatedImageView.autoPinEdgesToSuperviewEdges() animatedImageView.autoPinEdgesToSuperviewEdges()
addUploadProgressIfNecessary(animatedImageView) _ = addUploadProgressIfNecessary(animatedImageView)
loadBlock = { [weak self] in loadBlock = { [weak self] in
guard let strongSelf = self else { guard let strongSelf = self else {
@ -177,7 +177,7 @@ public class ConversationMediaView: UIView {
stillImageView.backgroundColor = Theme.offBackgroundColor stillImageView.backgroundColor = Theme.offBackgroundColor
addSubview(stillImageView) addSubview(stillImageView)
stillImageView.autoPinEdgesToSuperviewEdges() stillImageView.autoPinEdgesToSuperviewEdges()
addUploadProgressIfNecessary(stillImageView) _ = addUploadProgressIfNecessary(stillImageView)
loadBlock = { [weak self] in loadBlock = { [weak self] in
guard let strongSelf = self else { guard let strongSelf = self else {
return return

@ -113,7 +113,7 @@ final class CallKitCallUIAdaptee: NSObject, CallUIAdaptee, CXProviderDelegate {
let call = SignalCall.outgoingCall(localId: UUID(), remotePhoneNumber: handle) let call = SignalCall.outgoingCall(localId: UUID(), remotePhoneNumber: handle)
// make sure we don't terminate audio session during call // make sure we don't terminate audio session during call
self.audioSession.startAudioActivity(call.audioActivity) _ = self.audioSession.startAudioActivity(call.audioActivity)
// Add the new outgoing call to the app's list of calls. // Add the new outgoing call to the app's list of calls.
// So we can find it in the provider delegate callbacks. // So we can find it in the provider delegate callbacks.
@ -385,7 +385,7 @@ final class CallKitCallUIAdaptee: NSObject, CallUIAdaptee, CXProviderDelegate {
Logger.debug("Received") Logger.debug("Received")
self.audioSession.startAudioActivity(self.audioActivity) _ = self.audioSession.startAudioActivity(self.audioActivity)
self.audioSession.isRTCAudioEnabled = true self.audioSession.isRTCAudioEnabled = true
} }

@ -141,7 +141,7 @@ extension CallUIAdaptee {
AssertIsOnMainThread() AssertIsOnMainThread()
// make sure we don't terminate audio session during call // make sure we don't terminate audio session during call
audioSession.startAudioActivity(call.audioActivity) _ = audioSession.startAudioActivity(call.audioActivity)
let callerName = self.contactsManager.displayName(forPhoneIdentifier: call.remotePhoneNumber) let callerName = self.contactsManager.displayName(forPhoneIdentifier: call.remotePhoneNumber)
adaptee.reportIncomingCall(call, callerName: callerName) adaptee.reportIncomingCall(call, callerName: callerName)

Loading…
Cancel
Save