]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commitdiff
Revert "QR code: QR code scanning is not available in the simulator"
authorRoopesh Chander <roop@roopc.net>
Wed, 31 Oct 2018 20:35:03 +0000 (02:05 +0530)
committerRoopesh Chander <roop@roopc.net>
Thu, 1 Nov 2018 06:15:44 +0000 (11:45 +0530)
This reverts commit 9729386406cd9543303a68e51d57b286880bb8cd.

Signed-off-by: Roopesh Chander <roop@roopc.net>
WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift

index 1b658544a14eb46da5867a1cfa1a15d0ffbabb16..1d87b277d5d6812301be02a28d89009ad28250a8 100644 (file)
@@ -113,17 +113,11 @@ class TunnelsListTableViewController: UITableViewController {
     }
 
     func presentViewControllerForScanningQRCode() {
-        #if targetEnvironment(simulator)
-        print("Scanning QR code is unavailable in the simulator")
-        #else
-
         let scanQRCodeVC = QRScanViewController()
         scanQRCodeVC.delegate = self
         let scanQRCodeNC = UINavigationController(rootViewController: scanQRCodeVC)
         scanQRCodeNC.modalPresentationStyle = .fullScreen
         self.present(scanQRCodeNC, animated: true)
-
-        #endif
     }
 
     func showErrorAlert(title: String, message: String) {