From 9c3ecbc77d7d9636949900c0d7ed6c1d1b42488d Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Fri, 27 Jan 2017 11:17:35 -0500 Subject: [PATCH] Clean up ahead of PR. // FREEBIE --- Signal/src/view controllers/CallViewController.swift | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Signal/src/view controllers/CallViewController.swift b/Signal/src/view controllers/CallViewController.swift index f060ada18..e6a87602e 100644 --- a/Signal/src/view controllers/CallViewController.swift +++ b/Signal/src/view controllers/CallViewController.swift @@ -444,14 +444,6 @@ class CallViewController: UIViewController, CallObserver, CallServiceObserver, R self.localVideoConstraints = constraints } - func traverseViewHierarchy(view: UIView!, visitor: (UIView) -> Void) { - visitor(view) - - for subview in view.subviews { - traverseViewHierarchy(view:subview, visitor:visitor) - } - } - // MARK: - Methods // objc accessible way to set our swift enum. @@ -537,7 +529,7 @@ class CallViewController: UIViewController, CallObserver, CallServiceObserver, R ongoingCallView.isHidden = isRinging ongoingCallView.isUserInteractionEnabled = !isRinging - // Hide the contact avatar and speakerphone button if remote video is available. + // Rework control state if remote video is available. contactAvatarView.isHidden = !remoteVideoView.isHidden speakerPhoneButton.isHidden = !remoteVideoView.isHidden audioMuteButton.isHidden = !remoteVideoView.isHidden