summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2021-10-12 11:12:22 +0200
committerAndrej Mihajlov <and@mullvad.net>2021-11-03 13:30:52 +0100
commit62127ea0335fb84365ddd42f9628ded000898868 (patch)
tree1af96ac1bfbd032e5dcd45d2ef63d6b9fcf6e126
parentd1ffa0fac1ff22394bccf6551f7476e22fbd2dcc (diff)
downloadmullvadvpn-62127ea0335fb84365ddd42f9628ded000898868.tar.xz
mullvadvpn-62127ea0335fb84365ddd42f9628ded000898868.zip
Remove unused EmbeddedViewContainerView
-rw-r--r--ios/MullvadVPN.xcodeproj/project.pbxproj6
-rw-r--r--ios/MullvadVPN/EmbeddedViewContainerView.swift60
2 files changed, 0 insertions, 66 deletions
diff --git a/ios/MullvadVPN.xcodeproj/project.pbxproj b/ios/MullvadVPN.xcodeproj/project.pbxproj
index b486a0a6e1..ec6cdb1084 100644
--- a/ios/MullvadVPN.xcodeproj/project.pbxproj
+++ b/ios/MullvadVPN.xcodeproj/project.pbxproj
@@ -98,7 +98,6 @@
5846227726E22A7C0035F7C2 /* AppStorePaymentManagerDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5846227626E22A7C0035F7C2 /* AppStorePaymentManagerDelegate.swift */; };
5846227A26E24F1F0035F7C2 /* ExclusivityController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 580EE20524B3222200F9D8A1 /* ExclusivityController.swift */; };
584789BE264D4A2A000E45FB /* le_root_cert.cer in Resources */ = {isa = PBXBuildFile; fileRef = 584789B7264D4A2A000E45FB /* le_root_cert.cer */; };
- 584789BE264D4A2A000E45FB /* le_root_cert.cer in Resources */ = {isa = PBXBuildFile; fileRef = 584789B7264D4A2A000E45FB /* le_root_cert.cer */; };
584789E026529D72000E45FB /* SSLPinningURLSessionDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 584789DF26529D72000E45FB /* SSLPinningURLSessionDelegate.swift */; };
584789EC2652A1A2000E45FB /* Logging in Frameworks */ = {isa = PBXBuildFile; productRef = 584789EB2652A1A2000E45FB /* Logging */; };
584D26BF270C550B004EA533 /* AnyIPAddress.swift in Sources */ = {isa = PBXBuildFile; fileRef = 584D26BE270C550B004EA533 /* AnyIPAddress.swift */; };
@@ -157,7 +156,6 @@
5871FB96254ADE4E0051A0A4 /* ConsolidatedApplicationLog.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5871FB95254ADE4E0051A0A4 /* ConsolidatedApplicationLog.swift */; };
5871FBA0254C26C00051A0A4 /* NSRegularExpression+IPAddress.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5871FB9F254C26BF0051A0A4 /* NSRegularExpression+IPAddress.swift */; };
58727283265D173C00F315B2 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 58727282265D173C00F315B2 /* LaunchScreen.storyboard */; };
- 5873884D239E6D7E00E96C4E /* EmbeddedViewContainerView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5873884C239E6D7E00E96C4E /* EmbeddedViewContainerView.swift */; };
587425C12299833500CA2045 /* RootContainerViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 587425C02299833500CA2045 /* RootContainerViewController.swift */; };
5875960726F36B3A00BF6711 /* TunnelIPCError.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5875960626F36B3A00BF6711 /* TunnelIPCError.swift */; };
5875960A26F371FC00BF6711 /* TunnelIPCSession.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5875960926F371FC00BF6711 /* TunnelIPCSession.swift */; };
@@ -438,7 +436,6 @@
5871FB95254ADE4E0051A0A4 /* ConsolidatedApplicationLog.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConsolidatedApplicationLog.swift; sourceTree = "<group>"; };
5871FB9F254C26BF0051A0A4 /* NSRegularExpression+IPAddress.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "NSRegularExpression+IPAddress.swift"; sourceTree = "<group>"; };
58727282265D173C00F315B2 /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = LaunchScreen.storyboard; sourceTree = "<group>"; };
- 5873884C239E6D7E00E96C4E /* EmbeddedViewContainerView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmbeddedViewContainerView.swift; sourceTree = "<group>"; };
587425C02299833500CA2045 /* RootContainerViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RootContainerViewController.swift; sourceTree = "<group>"; };
5875960626F36B3A00BF6711 /* TunnelIPCError.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TunnelIPCError.swift; sourceTree = "<group>"; };
5875960926F371FC00BF6711 /* TunnelIPCSession.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TunnelIPCSession.swift; sourceTree = "<group>"; };
@@ -836,7 +833,6 @@
587EB66F27143B6500123C75 /* DataSourceSnapshot.swift */,
58907D9424D17B4E00CFC3F5 /* DisconnectSplitButton.swift */,
58B9EB142489139B00095626 /* DisplayChainedError.swift */,
- 5873884C239E6D7E00E96C4E /* EmbeddedViewContainerView.swift */,
5892A45D265FABFF00890742 /* EmptyTableViewHeaderFooterView.swift */,
58FEEB45260A028D00A621A8 /* GeoJSON.swift */,
58F3C0A3249CB069003E76BE /* HeaderBarView.swift */,
@@ -1206,7 +1202,6 @@
buildActionMask = 2147483647;
files = (
58F3C0A724A50C02003E76BE /* relays.json in Resources */,
- 584789BF264D4A2A000E45FB /* le_root_cert.cer in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -1369,7 +1364,6 @@
587EB6742714520600123C75 /* PreferencesDataSourceDelegate.swift in Sources */,
5878BA1426DD0B01004147D7 /* OSLogHandler.swift in Sources */,
582BB1AF229566420055B6EF /* SettingsCell.swift in Sources */,
- 5873884D239E6D7E00E96C4E /* EmbeddedViewContainerView.swift in Sources */,
58F3C0A4249CB069003E76BE /* HeaderBarView.swift in Sources */,
5820674926E63EC900655B05 /* Promise+BackgroundTask.swift in Sources */,
58B9EB132488ED2100095626 /* AlertPresenter.swift in Sources */,
diff --git a/ios/MullvadVPN/EmbeddedViewContainerView.swift b/ios/MullvadVPN/EmbeddedViewContainerView.swift
deleted file mode 100644
index 9bb8fe1d2b..0000000000
--- a/ios/MullvadVPN/EmbeddedViewContainerView.swift
+++ /dev/null
@@ -1,60 +0,0 @@
-//
-// EmbeddedViewContainerView.swift
-// MullvadVPN
-//
-// Created by pronebird on 09/12/2019.
-// Copyright © 2019 Mullvad VPN AB. All rights reserved.
-//
-
-import Foundation
-import UIKit
-
-/// A `UIView` subclass that implements a host view for an embedded subview via an outlet.
-@IBDesignable class EmbeddedViewContainerView: UIView {
- @IBOutlet var embeddedView: UIView!
-
- override func awakeFromNib() {
- super.awakeFromNib()
-
- backgroundColor = .clear
-
- embeddedView.translatesAutoresizingMaskIntoConstraints = false
-
- addSubview(embeddedView)
-
- NSLayoutConstraint.activate([
- embeddedView.topAnchor.constraint(equalTo: topAnchor),
- embeddedView.leadingAnchor.constraint(equalTo: leadingAnchor),
- embeddedView.trailingAnchor.constraint(equalTo: trailingAnchor),
- embeddedView.bottomAnchor.constraint(equalTo: bottomAnchor)
- ])
- }
-
- #if TARGET_INTERFACE_BUILDER
- override func draw(_ rect: CGRect) {
- UIColor.white.withAlphaComponent(0.3).setFill()
- UIColor.white.withAlphaComponent(0.6).setStroke()
-
- let bezierPath = UIBezierPath(rect: rect)
- bezierPath.lineWidth = 1
- bezierPath.fill()
- bezierPath.stroke()
-
- let attributedString = NSAttributedString(
- string: "UIView",
- attributes: [.foregroundColor: UIColor.white]
- )
-
- let textSize = attributedString.size()
-
- var textRect = rect
- textRect.origin.x = (rect.width - textSize.width) * 0.5
- textRect.origin.y = (rect.height - textSize.height) * 0.5
- textRect.size = textSize
-
- attributedString.draw(in: textRect)
- }
- #endif
-
-
-}