aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/macOS/ViewController/NoTunnelsDetailViewController.swift
diff options
context:
space:
mode:
Diffstat (limited to 'WireGuard/WireGuard/UI/macOS/ViewController/NoTunnelsDetailViewController.swift')
-rw-r--r--WireGuard/WireGuard/UI/macOS/ViewController/NoTunnelsDetailViewController.swift46
1 files changed, 0 insertions, 46 deletions
diff --git a/WireGuard/WireGuard/UI/macOS/ViewController/NoTunnelsDetailViewController.swift b/WireGuard/WireGuard/UI/macOS/ViewController/NoTunnelsDetailViewController.swift
deleted file mode 100644
index 49f61974..00000000
--- a/WireGuard/WireGuard/UI/macOS/ViewController/NoTunnelsDetailViewController.swift
+++ /dev/null
@@ -1,46 +0,0 @@
-// SPDX-License-Identifier: MIT
-// Copyright © 2018-2019 WireGuard LLC. All Rights Reserved.
-
-import Cocoa
-
-class NoTunnelsDetailViewController: NSViewController {
-
- let tunnelsManager: TunnelsManager
-
- let importButton: NSButton = {
- let button = NSButton()
- button.title = tr("macButtonImportTunnels")
- button.setButtonType(.momentaryPushIn)
- button.bezelStyle = .rounded
- return button
- }()
-
- init(tunnelsManager: TunnelsManager) {
- self.tunnelsManager = tunnelsManager
- super.init(nibName: nil, bundle: nil)
- }
-
- required init?(coder: NSCoder) {
- fatalError("init(coder:) has not been implemented")
- }
-
- override func loadView() {
- let view = NSView()
-
- importButton.target = self
- importButton.action = #selector(importTunnelClicked)
-
- view.addSubview(importButton)
- importButton.translatesAutoresizingMaskIntoConstraints = false
- NSLayoutConstraint.activate([
- importButton.centerXAnchor.constraint(equalTo: view.centerXAnchor),
- importButton.centerYAnchor.constraint(equalTo: view.centerYAnchor)
- ])
- self.view = view
- }
-
- @objc func importTunnelClicked() {
- // We pass sourceVC as parent instead of self because this VC will not be visible when the import completes
- ImportPanelPresenter.presentImportPanel(tunnelsManager: tunnelsManager, sourceVC: parent)
- }
-}