From f7331997b2bd259c6ab3ed6d9b3bf82c3cccd0cd Mon Sep 17 00:00:00 2001 From: Roopesh Chander Date: Thu, 1 Nov 2018 02:05:03 +0530 Subject: [PATCH] Revert "QR code: QR code scanning is not available in the simulator" This reverts commit 9729386406cd9543303a68e51d57b286880bb8cd. --- .../WireGuard/UI/iOS/TunnelsListTableViewController.swift | 6 ------ 1 file changed, 6 deletions(-) diff --git a/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift b/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift index 1b65854..1d87b27 100644 --- a/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift +++ b/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift @@ -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) {